]> git.lizzy.rs Git - rust.git/blob - tests/ui/auto-traits/auto-trait-validation.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / 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() {}