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