fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
639 B17 linesraw
1error[E0380]: auto traits cannot have methods or associated items
2  --> $DIR/issue-23080-2.rs:7:10
3   |
4LL | unsafe auto trait Trait {
5   |                   ----- auto trait cannot have items
6LL |     type Output;
7   |          ^^^^^^
8
9error[E0275]: overflow evaluating the requirement `<() as Trait>::Output`
10   |
11   = note: required because of the requirements on the impl of `Trait` for `()`
12   = note: required because of the requirements on the impl of `Trait` for `()`
13
14error: aborting due to 2 previous errors
15
16Some errors have detailed explanations: E0275, E0380.
17For more information about an error, try `rustc --explain E0275`.