blob: f84fd52c851a8b1d2c4b177294aa9cb83ea6fec6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error[E0404]: expected trait, found struct `Foo`
--> $DIR/E0404.rs:4:6
|
LL | impl Foo for Bar {} //~ ERROR E0404
| ^^^ not a trait
error[E0404]: expected trait, found struct `Foo`
--> $DIR/E0404.rs:8:11
|
LL | fn baz<T: Foo>(_: T) {} //~ ERROR E0404
| ^^^ not a trait
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0404`.
|