summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/alias/syntax-fail.rs
blob: 039bbce8c1ed0f279237e20da56fe8ea0b72cf91 (plain)
1
2
3
4
5
6
7
8
9
10
#![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() {}