summaryrefslogtreecommitdiffstats
path: root/src/test/ui/auto-traits/auto-trait-validation.rs
blob: d43055e270bd50283d2d52a9dd757a730c11903c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(auto_traits)]

// run-rustfix

auto trait Generic<T> {}
//~^ auto traits cannot have generic parameters [E0567]
auto trait Bound : Copy {}
//~^ auto traits cannot have super traits or lifetime bounds [E0568]
auto trait LifetimeBound : 'static {}
//~^ auto traits cannot have super traits or lifetime bounds [E0568]
auto trait MyTrait { fn foo() {} }
//~^ auto traits cannot have associated items [E0380]
fn main() {}