mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
16 lines
380 B
Plaintext
16 lines
380 B
Plaintext
error[E0404]: expected trait, found struct `Foo`
|
|
--> $DIR/E0404.rs:4:6
|
|
|
|
|
LL | impl Foo for Bar {}
|
|
| ^^^ not a trait
|
|
|
|
error[E0404]: expected trait, found struct `Foo`
|
|
--> $DIR/E0404.rs:8:11
|
|
|
|
|
LL | fn baz<T: Foo>(_: T) {}
|
|
| ^^^ not a trait
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0404`.
|