]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/fallback.stderr
Auto merge of #106503 - cjgillot:remap-nofilter, r=oli-obk
[rust.git] / tests / ui / type-alias-impl-trait / fallback.stderr
1 error[E0283]: type annotations needed
2   --> $DIR/fallback.rs:24:5
3    |
4 LL | fn unconstrained_foo() -> Wrapper<Foo> {
5    |                           ------------ type must be known at this point
6 LL |     Wrapper::Second
7    |     ^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the enum `Wrapper`
8    |
9    = note: cannot satisfy `_: Copy`
10 help: consider specifying the generic argument
11    |
12 LL |     Wrapper::<T>::Second
13    |            +++++
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0283`.