fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
329 B14 linesraw
1error: expected trait bound, found `impl Trait` type
2  --> $DIR/issue-102182-impl-trait-recover.rs:1:11
3   |
4LL | fn foo<T: impl Trait>() {}
5   |           ^^^^^^^^^^ not a trait
6   |
7help: use the trait bounds directly
8   |
9LL - fn foo<T: impl Trait>() {}
10LL + fn foo<T: Trait>() {}
11   |
12
13error: aborting due to previous error
14