2018-02-07 19:35:35 -08:00
|
|
|
error[E0404]: expected trait, found struct `Foo`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0404.rs:4:6
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | impl Foo for Bar {}
|
2018-02-07 19:35:35 -08:00
|
|
|
| ^^^ not a trait
|
|
|
|
|
2018-02-22 17:50:06 -06:00
|
|
|
error[E0404]: expected trait, found struct `Foo`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0404.rs:8:11
|
2018-02-22 17:50:06 -06:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | fn baz<T: Foo>(_: T) {}
|
2018-02-22 17:50:06 -06:00
|
|
|
| ^^^ not a trait
|
|
|
|
|
2018-03-15 16:13:47 +01:00
|
|
|
error: aborting due to 2 previous errors
|
2018-02-07 19:35:35 -08:00
|
|
|
|
2018-03-15 16:13:47 +01:00
|
|
|
For more information about this error, try `rustc --explain E0404`.
|