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