fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

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