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