]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auto-traits/auto-trait-validation.rs
Rollup merge of #89324 - yoshuawuyts:hardware-parallelism, r=m-ou-se
[rust.git] / src / test / ui / auto-traits / auto-trait-validation.rs
1 #![feature(auto_traits)]
2
3 // run-rustfix
4
5 auto trait Generic<T> {}
6 //~^ auto traits cannot have generic parameters [E0567]
7 auto trait Bound : Copy {}
8 //~^ auto traits cannot have super traits or lifetime bounds [E0568]
9 auto trait LifetimeBound : 'static {}
10 //~^ auto traits cannot have super traits or lifetime bounds [E0568]
11 auto trait MyTrait { fn foo() {} }
12 //~^ auto traits cannot have associated items [E0380]
13 fn main() {}