]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fully-qualified-type/fully-qualified-type-name4.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / fully-qualified-type / fully-qualified-type-name4.stderr
1 error[E0308]: mismatched types
2   --> $DIR/fully-qualified-type-name4.rs:6:12
3    |
4 LL | fn bar(x: usize) -> Option<usize> {
5    |                     ------------- expected `std::option::Option<usize>` because of return type
6 LL |     return x;
7    |            ^ expected enum `std::option::Option`, found usize
8    |
9    = note: expected type `std::option::Option<usize>`
10               found type `usize`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.