2018-07-15 16:11:54 -05:00
|
|
|
error[E0380]: auto traits cannot have methods or associated items
|
2020-03-06 12:55:21 -06:00
|
|
|
--> $DIR/issue-23080-2.rs:6:10
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2020-03-06 12:55:21 -06:00
|
|
|
LL | unsafe auto trait Trait {
|
|
|
|
| ----- auto trait cannot have items
|
|
|
|
LL | type Output;
|
|
|
|
| ^^^^^^
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error[E0275]: overflow evaluating the requirement `<() as Trait>::Output`
|
|
|
|
|
|
|
|
|
= note: required because of the requirements on the impl of `Trait` for `()`
|
|
|
|
= note: required because of the requirements on the impl of `Trait` for `()`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0275, E0380.
|
2018-07-15 16:11:54 -05:00
|
|
|
For more information about an error, try `rustc --explain E0275`.
|