granite-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
Text
Raw Normal View History

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