1
Fork 0
rust/src/test/ui/coherence/coherence-impl-trait-for-trait-object-safe.stderr

16 lines
695 B
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0038]: the trait `NotObjectSafe` cannot be made into an object
--> $DIR/coherence-impl-trait-for-trait-object-safe.rs:7:24
2018-08-08 14:28:26 +02:00
|
LL | trait NotObjectSafe { fn eq(&self, other: Self); }
| ------------- ---- ...because method `eq` references the `Self` type in this parameter
| |
| this trait cannot be made into an object...
2019-05-28 14:46:13 -04:00
LL | impl NotObjectSafe for dyn NotObjectSafe { }
| ^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object
|
= help: consider moving `eq` to another trait
2018-08-08 14:28:26 +02:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0038`.