rust/src/test/ui/coherence/coherence-impl-trait-for-trait-object-safe.re.stderr

12 lines
458 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0038]: the trait `NotObjectSafe` cannot be made into an object
2018-12-28 19:13:06 -06:00
--> $DIR/coherence-impl-trait-for-trait-object-safe.rs:11:6
2018-08-08 07:28:26 -05:00
|
2018-12-28 19:13:06 -06:00
LL | impl NotObjectSafe for NotObjectSafe { }
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object
|
= note: method `eq` references the `Self` type in its arguments or return type
error: aborting due to previous error
For more information about this error, try `rustc --explain E0038`.