]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-104513-ice.stderr
new trait solver: rebase impl substs for gats correctly
[rust.git] / tests / ui / typeck / issue-104513-ice.stderr
1 error[E0405]: cannot find trait `Oops` in this scope
2   --> $DIR/issue-104513-ice.rs:3:19
3    |
4 LL |     let _: S<impl Oops> = S;
5    |                   ^^^^ not found in this scope
6    |
7 help: you might be missing a type parameter
8    |
9 LL | fn f<Oops>() {
10    |     ++++++
11
12 error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in variable binding
13   --> $DIR/issue-104513-ice.rs:3:14
14    |
15 LL |     let _: S<impl Oops> = S;
16    |              ^^^^^^^^^
17
18 error: aborting due to 2 previous errors
19
20 Some errors have detailed explanations: E0405, E0562.
21 For more information about an error, try `rustc --explain E0405`.