mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
15 lines
419 B
Rust
15 lines
419 B
Rust
#![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() {}
|