mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
15 lines
329 B
Plaintext
15 lines
329 B
Plaintext
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 previous error
|
|
|