rust/tests/ui/error-codes/E0404.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
380 B
Plaintext
Raw Normal View History

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