]>
Commit | Line | Data |
---|---|---|
9fa01778 | 1 | error: trait aliases cannot be `auto` |
6a06907d | 2 | --> $DIR/syntax-fail.rs:4:1 |
9fa01778 | 3 | | |
532ac7d7 | 4 | LL | auto trait A = Foo; |
e74abb32 | 5 | | ^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `auto` |
9fa01778 XL |
6 | |
7 | error: trait aliases cannot be `unsafe` | |
6a06907d | 8 | --> $DIR/syntax-fail.rs:5:1 |
9fa01778 | 9 | | |
532ac7d7 | 10 | LL | unsafe trait B = Foo; |
e74abb32 | 11 | | ^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `unsafe` |
9fa01778 | 12 | |
e74abb32 | 13 | error: bounds are not allowed on trait aliases |
6a06907d | 14 | --> $DIR/syntax-fail.rs:7:8 |
e74abb32 XL |
15 | | |
16 | LL | trait C: Ord = Eq; | |
17 | | ^^^^^ | |
18 | ||
19 | error: bounds are not allowed on trait aliases | |
6a06907d | 20 | --> $DIR/syntax-fail.rs:8:8 |
e74abb32 XL |
21 | | |
22 | LL | trait D: = Eq; | |
23 | | ^ | |
24 | ||
25 | error: aborting due to 4 previous errors | |
9fa01778 | 26 |