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

12 lines
473 B
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0038]: the trait `NotObjectSafe` cannot be made into an object
2018-12-25 08:56:47 -07:00
--> $DIR/coherence-impl-trait-for-trait-object-safe.rs:7:6
2018-08-08 14:28:26 +02:00
|
LL | impl NotObjectSafe for NotObjectSafe { } //~ ERROR E0038
| ^^^^^^^^^^^^^ 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`.