2019-02-11 19:50:45 -06:00
|
|
|
error: trait aliases cannot be `auto`
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/syntax-fail.rs:4:1
|
2019-02-11 19:50:45 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | auto trait A = Foo;
|
2019-09-21 10:18:08 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `auto`
|
2019-02-11 19:50:45 -06:00
|
|
|
|
|
|
|
error: trait aliases cannot be `unsafe`
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/syntax-fail.rs:5:1
|
2019-02-11 19:50:45 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | unsafe trait B = Foo;
|
2019-09-21 10:18:08 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `unsafe`
|
2019-02-11 19:50:45 -06:00
|
|
|
|
2019-09-21 10:18:08 -05:00
|
|
|
error: bounds are not allowed on trait aliases
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/syntax-fail.rs:7:8
|
2019-09-21 10:18:08 -05:00
|
|
|
|
|
|
|
|
LL | trait C: Ord = Eq;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: bounds are not allowed on trait aliases
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/syntax-fail.rs:8:8
|
2019-09-21 10:18:08 -05:00
|
|
|
|
|
|
|
|
LL | trait D: = Eq;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2019-02-11 19:50:45 -06:00
|
|
|
|