mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
14 lines
397 B
Rust
14 lines
397 B
Rust
#![feature(auto_traits)]
|
|
|
|
// 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() {}
|