]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-auto-trait-no-supertraits-2.stderr
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / test / ui / typeck / 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:3: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`.