]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/alias/syntax-fail.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / traits / alias / syntax-fail.stderr
CommitLineData
9fa01778 1error: trait aliases cannot be `auto`
6a06907d 2 --> $DIR/syntax-fail.rs:4:1
9fa01778 3 |
532ac7d7 4LL | auto trait A = Foo;
e74abb32 5 | ^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `auto`
9fa01778
XL
6
7error: trait aliases cannot be `unsafe`
6a06907d 8 --> $DIR/syntax-fail.rs:5:1
9fa01778 9 |
532ac7d7 10LL | unsafe trait B = Foo;
e74abb32 11 | ^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `unsafe`
9fa01778 12
e74abb32 13error: bounds are not allowed on trait aliases
6a06907d 14 --> $DIR/syntax-fail.rs:7:8
e74abb32
XL
15 |
16LL | trait C: Ord = Eq;
17 | ^^^^^
18
19error: bounds are not allowed on trait aliases
6a06907d 20 --> $DIR/syntax-fail.rs:8:8
e74abb32
XL
21 |
22LL | trait D: = Eq;
23 | ^
24
25error: aborting due to 4 previous errors
9fa01778 26