2021-08-31 00:11:25 -05:00
|
|
|
error[E0785]: cannot define inherent `impl` for a dyn auto trait
|
2023-02-11 17:17:38 -06:00
|
|
|
--> $DIR/issue-85026.rs:5:1
|
2021-08-31 00:11:25 -05:00
|
|
|
|
|
|
|
|
LL | impl dyn AutoTrait {}
|
2023-02-11 17:17:38 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ impl requires at least one non-auto trait
|
2021-08-31 00:11:25 -05:00
|
|
|
|
|
|
|
|
= note: define and implement a new trait or type instead
|
|
|
|
|
|
|
|
error[E0785]: cannot define inherent `impl` for a dyn auto trait
|
2023-02-11 17:17:38 -06:00
|
|
|
--> $DIR/issue-85026.rs:8:1
|
2021-08-31 00:11:25 -05:00
|
|
|
|
|
|
|
|
LL | impl dyn Unpin {}
|
2023-02-11 17:17:38 -06:00
|
|
|
| ^^^^^^^^^^^^^^ impl requires at least one non-auto trait
|
2021-08-31 00:11:25 -05:00
|
|
|
|
|
|
|
|
= 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`.
|