]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-102182-impl-trait-recover.stderr
fix #102182, recover from impl Trait in type param bound
[rust.git] / src / test / ui / parser / issues / issue-102182-impl-trait-recover.stderr
1 error: expected trait bound, found `impl Trait` type
2   --> $DIR/issue-102182-impl-trait-recover.rs:1:11
3    |
4 LL | fn foo<T: impl Trait>() {}
5    |           ^^^^^^^^^^ not a trait
6    |
7 help: use the trait bounds directly
8    |
9 LL - fn foo<T: impl Trait>() {}
10 LL + fn foo<T: Trait>() {}
11    |
12
13 error: aborting due to previous error
14