]> git.lizzy.rs Git - rust.git/blob - tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / auto-traits / typeck-auto-trait-no-supertraits-2.stderr
1 error[E0568]: auto traits cannot have super traits or lifetime bounds
2   --> $DIR/typeck-auto-trait-no-supertraits-2.rs:4:17
3    |
4 LL | auto trait Magic : Sized where Option<Self> : Magic {}
5    |            -----^^^^^^^^ help: remove the super traits or lifetime bounds
6    |            |
7    |            auto trait cannot have super traits or lifetime bounds
8
9 error[E0568]: auto traits cannot have super traits or lifetime bounds
10   --> $DIR/typeck-auto-trait-no-supertraits-2.rs:4:26
11    |
12 LL | auto trait Magic : Sized where Option<Self> : Magic {}
13    |            -----         ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the super traits or lifetime bounds
14    |            |
15    |            auto trait cannot have super traits or lifetime bounds
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0568`.