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