fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/boxed-variant-field.rs:9:31 3 | 4LL | Ty::List(elem) => foo(elem), 5 | --- ^^^^ expected `Ty`, found `Box<Ty>` 6 | | 7 | arguments to this function are incorrect 8 | 9 = note: expected enum `Ty` 10 found struct `Box<Ty>` 11note: function defined here 12 --> $DIR/boxed-variant-field.rs:6:4 13 | 14LL | fn foo(x: Ty) -> Ty { 15 | ^^^ ----- 16help: consider unboxing the value 17 | 18LL | Ty::List(elem) => foo(*elem), 19 | + 20 21error: aborting due to previous error 22 23For more information about this error, try `rustc --explain E0308`.