mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
11 lines
314 B
Rust
11 lines
314 B
Rust
#![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`
|
|
|
|
trait C: Ord = Eq; //~ ERROR bounds are not allowed on trait aliases
|
|
trait D: = Eq; //~ ERROR bounds are not allowed on trait aliases
|
|
|
|
fn main() {}
|