diff options
Diffstat (limited to 'src/test/ui/compile-fail-migration/coherence-impl-trait-for-trait-object-safe.stderr')
| -rw-r--r-- | src/test/ui/compile-fail-migration/coherence-impl-trait-for-trait-object-safe.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/compile-fail-migration/coherence-impl-trait-for-trait-object-safe.stderr b/src/test/ui/compile-fail-migration/coherence-impl-trait-for-trait-object-safe.stderr new file mode 100644 index 00000000000..5d62a86b96f --- /dev/null +++ b/src/test/ui/compile-fail-migration/coherence-impl-trait-for-trait-object-safe.stderr @@ -0,0 +1,11 @@ +error[E0038]: the trait `NotObjectSafe` cannot be made into an object + --> $DIR/coherence-impl-trait-for-trait-object-safe.rs:17:6 + | +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`. |
