]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/alias/syntax-fail.stderr
Rollup merge of #100953 - joshtriplett:write-docs, r=Mark-Simulacrum
[rust.git] / src / test / ui / traits / alias / syntax-fail.stderr
1 error: trait aliases cannot be `auto`
2   --> $DIR/syntax-fail.rs:4:1
3    |
4 LL | auto trait A = Foo;
5    | ^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `auto`
6
7 error: trait aliases cannot be `unsafe`
8   --> $DIR/syntax-fail.rs:5:1
9    |
10 LL | unsafe trait B = Foo;
11    | ^^^^^^^^^^^^^^^^^^^^^ trait aliases cannot be `unsafe`
12
13 error: bounds are not allowed on trait aliases
14   --> $DIR/syntax-fail.rs:7:8
15    |
16 LL | trait C: Ord = Eq;
17    |        ^^^^^
18
19 error: bounds are not allowed on trait aliases
20   --> $DIR/syntax-fail.rs:8:8
21    |
22 LL | trait D: = Eq;
23    |        ^
24
25 error: aborting due to 4 previous errors
26