summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-102182-impl-trait-recover.stderr
blob: cf05337f26c06ae7c21418bd713ea5d84d9b1040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: expected trait bound, found `impl Trait` type
  --> $DIR/issue-102182-impl-trait-recover.rs:1:11
   |
LL | fn foo<T: impl Trait>() {}
   |           ^^^^^^^^^^ not a trait
   |
help: use the trait bounds directly
   |
LL - fn foo<T: impl Trait>() {}
LL + fn foo<T: Trait>() {}
   |

error: aborting due to 1 previous error