rust/src/test/ui/traits/trait-alias/trait-alias-syntax-fail.rs

8 lines
179 B
Rust
Raw Normal View History

2019-02-12 01:50:45 +00:00
#![feature(trait_alias)]
trait Foo {}
auto trait A = Foo; //~ ERROR trait aliases cannot be `auto`
unsafe trait B = Foo; //~ ERROR trait aliases cannot be `unsafe`
fn main() {}