]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auto-traits/auto-trait-validation.fixed
Rollup merge of #93663 - sunfishcode:sunfishcode/as-raw-name, r=joshtriplett
[rust.git] / src / test / ui / auto-traits / auto-trait-validation.fixed
1 #![feature(auto_traits)]
2
3 // run-rustfix
4
5 auto trait Generic {}
6 //~^ auto traits cannot have generic parameters [E0567]
7 auto trait Bound {}
8 //~^ auto traits cannot have super traits or lifetime bounds [E0568]
9 auto trait LifetimeBound {}
10 //~^ auto traits cannot have super traits or lifetime bounds [E0568]
11 auto trait MyTrait {  }
12 //~^ auto traits cannot have associated items [E0380]
13 fn main() {}