blob: ca61fb0c171febdbd67445dac6811c3d94f2e7c1 [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/fully-qualified-type-name4.rs:6:12
|
LL | fn bar(x: usize) -> Option<usize> {
| ------------- expected `std::option::Option<usize>` because of return type
LL | return x;
| ^
| |
| expected enum `std::option::Option`, found `usize`
| help: try using a variant of the expected enum: `Some(x)`
|
= note: expected enum `std::option::Option<usize>`
found type `usize`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.