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