]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/issue-85026.stderr
fix(rustc_typeck): produce better errors for dyn auto trait
[rust.git] / src / test / ui / coherence / issue-85026.stderr
1 error[E0785]: cannot define inherent `impl` for a dyn auto trait
2   --> $DIR/issue-85026.rs:5:6
3    |
4 LL | impl dyn AutoTrait {}
5    |      ^^^^^^^^^^^^^ impl requires a principal trait
6    |
7    = note: define and implement a new trait or type instead
8
9 error[E0785]: cannot define inherent `impl` for a dyn auto trait
10   --> $DIR/issue-85026.rs:8:6
11    |
12 LL | impl dyn Unpin {}
13    |      ^^^^^^^^^ impl requires a principal trait
14    |
15    = note: define and implement a new trait or type instead
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0785`.