2018-08-08 14:28:26 +02:00
|
|
|
error[E0038]: the trait `NotObjectSafe` cannot be made into an object
|
2020-07-25 02:05:19 -04:00
|
|
|
--> $DIR/coherence-impl-trait-for-trait-object-safe.rs:7:24
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-09-02 20:22:22 -07:00
|
|
|
LL | trait NotObjectSafe { fn eq(&self, other: Self); }
|
2020-01-31 18:48:35 -08:00
|
|
|
| ------------- ---- ...because method `eq` references the `Self` type in this parameter
|
2020-01-31 16:47:00 -08:00
|
|
|
| |
|
|
|
|
| this trait cannot be made into an object...
|
2019-05-28 14:46:13 -04:00
|
|
|
LL | impl NotObjectSafe for dyn NotObjectSafe { }
|
2020-07-25 02:05:19 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object
|
2020-01-31 16:47:00 -08:00
|
|
|
|
|
|
|
|
= 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`.
|