]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/boxed-variant-field.stderr
Rollup merge of #92612 - atopia:update-lib-l4re, r=dtolnay
[rust.git] / src / test / ui / suggestions / boxed-variant-field.stderr
1 error[E0308]: mismatched types
2   --> $DIR/boxed-variant-field.rs:9:31
3    |
4 LL |         Ty::List(elem) => foo(elem),
5    |                               ^^^^ expected enum `Ty`, found struct `Box`
6    |
7    = note: expected enum `Ty`
8             found struct `Box<Ty>`
9 help: consider unboxing the value
10    |
11 LL |         Ty::List(elem) => foo(*elem),
12    |                               +
13 help: try wrapping the expression in `Ty::List`
14    |
15 LL |         Ty::List(elem) => foo(Ty::List(elem)),
16    |                               +++++++++    +
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.