]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fully-qualified-type/fully-qualified-type-name4.stderr
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[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 `Option<usize>` because of return type
6 LL |     return x;
7    |            ^ expected enum `Option`, found `usize`
8    |
9    = note: expected enum `Option<usize>`
10               found type `usize`
11 help: try wrapping the expression in `Some`
12    |
13 LL |     return Some(x);
14    |            +++++ +
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0308`.