]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/alias/syntax-fail.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / traits / alias / syntax-fail.rs
CommitLineData
9fa01778
XL
1#![feature(trait_alias)]
2
3trait Foo {}
4auto trait A = Foo; //~ ERROR trait aliases cannot be `auto`
5unsafe trait B = Foo; //~ ERROR trait aliases cannot be `unsafe`
6
e74abb32
XL
7trait C: Ord = Eq; //~ ERROR bounds are not allowed on trait aliases
8trait D: = Eq; //~ ERROR bounds are not allowed on trait aliases
9
9fa01778 10fn main() {}