]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/alias/only-maybe-bound.stderr
Rollup merge of #100953 - joshtriplett:write-docs, r=Mark-Simulacrum
[rust.git] / src / test / ui / traits / alias / only-maybe-bound.stderr
1 error[E0224]: at least one trait is required for an object type
2   --> $DIR/only-maybe-bound.rs:13:12
3    |
4 LL | trait _1 = _0;
5    | -------- this alias does not contain a trait
6 ...
7 LL | type _T0 = dyn _1;
8    |            ^^^^^^
9
10 error[E0224]: at least one trait is required for an object type
11   --> $DIR/only-maybe-bound.rs:19:12
12    |
13 LL | trait _2 = _1 + _1;
14    | -------- this alias does not contain a trait
15 LL |
16 LL | type _T1 = dyn _2;
17    |            ^^^^^^
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0224`.