2019-02-11 19:50:45 -06: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`
|
|
|
|
|
2019-09-21 10:18:08 -05:00
|
|
|
trait C: Ord = Eq; //~ ERROR bounds are not allowed on trait aliases
|
|
|
|
trait D: = Eq; //~ ERROR bounds are not allowed on trait aliases
|
|
|
|
|
2019-02-11 19:50:45 -06:00
|
|
|
fn main() {}
|