blob: f65952e00f58850a8cb08e59c7c9c4564b563a4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#![feature(auto_traits)]
#![allow(dead_code)]
//@ run-rustfix
auto trait Generic {}
//~^ auto traits cannot have generic parameters [E0567]
auto trait Bound {}
//~^ auto traits cannot have super traits or lifetime bounds [E0568]
auto trait LifetimeBound {}
//~^ auto traits cannot have super traits or lifetime bounds [E0568]
auto trait MyTrait { }
//~^ auto traits cannot have associated items [E0380]
fn main() {}
|