]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr
Auto merge of #88086 - ssomers:btree_clone_testing, r=dtolnay
[rust.git] / src / test / ui / auto-traits / typeck-auto-trait-no-supertraits-2.stderr
1 error[E0568]: auto traits cannot have super traits
2   --> $DIR/typeck-auto-trait-no-supertraits-2.rs:4:20
3    |
4 LL | auto trait Magic : Sized where Option<Self> : Magic {}
5    |            -----   ^^^^^ help: remove the super traits
6    |            |
7    |            auto trait cannot have super traits
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0568`.