summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coherence/issue-85026.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/coherence/issue-85026.stderr')
-rw-r--r--src/test/ui/coherence/issue-85026.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/coherence/issue-85026.stderr b/src/test/ui/coherence/issue-85026.stderr
new file mode 100644
index 000000000..a5da19bbf
--- /dev/null
+++ b/src/test/ui/coherence/issue-85026.stderr
@@ -0,0 +1,19 @@
+error[E0785]: cannot define inherent `impl` for a dyn auto trait
+ --> $DIR/issue-85026.rs:5:6
+ |
+LL | impl dyn AutoTrait {}
+ | ^^^^^^^^^^^^^ impl requires at least one non-auto trait
+ |
+ = note: define and implement a new trait or type instead
+
+error[E0785]: cannot define inherent `impl` for a dyn auto trait
+ --> $DIR/issue-85026.rs:8:6
+ |
+LL | impl dyn Unpin {}
+ | ^^^^^^^^^ impl requires at least one non-auto trait
+ |
+ = note: define and implement a new trait or type instead
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0785`.