]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variants/variant-used-as-type.stderr
Rollup merge of #100112 - RalfJung:assert_send_and_sync, r=m-ou-se
[rust.git] / src / test / ui / variants / variant-used-as-type.stderr
1 error[E0573]: expected type, found variant `Ty::A`
2   --> $DIR/variant-used-as-type.rs:7:7
3    |
4 LL |     B(Ty::A),
5    |       ^^^^^ not a type
6    |
7 help: try using the variant's enum
8    |
9 LL |     B(E),
10    |       ~
11 LL |     B(Ty),
12    |       ~~
13
14 error[E0573]: expected type, found variant `E::A`
15   --> $DIR/variant-used-as-type.rs:17:6
16    |
17 LL | impl E::A {}
18    |      ^^^^ not a type
19    |
20 help: try using the variant's enum
21    |
22 LL | impl E {}
23    |      ~
24 LL | impl Ty {}
25    |      ~~
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0573`.