rust/tests/ui/traits/alias/syntax-fail.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
602 B
Plaintext
Raw Normal View History

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;
| ^^^^^^^^^^^^^^^^^^^ 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;
| ^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `unsafe`
2019-02-11 19:50:45 -06:00
error: bounds are not allowed on trait aliases
2021-02-08 16:15:45 -06:00
--> $DIR/syntax-fail.rs:7:8
|
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
|
LL | trait D: = Eq;
| ^
error: aborting due to 4 previous errors
2019-02-11 19:50:45 -06:00