]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auto-traits/auto-trait-validation.rs
Merge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19
[rust.git] / src / test / ui / auto-traits / auto-trait-validation.rs
1 #![feature(auto_traits)]
2
3 auto trait Generic<T> {}
4 //~^ auto traits cannot have generic parameters [E0567]
5 auto trait Bound : Copy {}
6 //~^ auto traits cannot have super traits [E0568]
7 auto trait MyTrait { fn foo() {} }
8 //~^ auto traits cannot have methods or associated items [E0380]
9 fn main() {}