rust/tests/ui/traits/alias/only-maybe-bound.stderr

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

22 lines
572 B
Plaintext
Raw Normal View History

error[E0224]: at least one trait is required for an object type
2021-02-08 16:15:45 -06:00
--> $DIR/only-maybe-bound.rs:13:12
2019-03-30 17:06:09 -05:00
|
2022-05-09 12:03:37 -05:00
LL | trait _1 = _0;
2022-02-13 09:27:59 -06:00
| -------- this alias does not contain a trait
2022-05-09 12:03:37 -05:00
...
2019-03-30 17:06:09 -05:00
LL | type _T0 = dyn _1;
| ^^^^^^
error[E0224]: at least one trait is required for an object type
2021-02-08 16:15:45 -06:00
--> $DIR/only-maybe-bound.rs:19:12
2019-03-30 17:06:09 -05:00
|
2022-05-09 12:03:37 -05:00
LL | trait _2 = _1 + _1;
2022-02-13 09:27:59 -06:00
| -------- this alias does not contain a trait
2022-06-08 13:07:59 -05:00
LL |
LL | type _T1 = dyn _2;
2019-03-30 17:06:09 -05:00
| ^^^^^^
error: aborting due to 2 previous errors
2020-03-21 10:43:12 -05:00
For more information about this error, try `rustc --explain E0224`.