]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/terr-sorts.rs:10:14 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | want_foo(b); |
923072b8 FG |
5 | | -------- ^ expected struct `Foo`, found struct `Box` |
6 | | | | |
7 | | arguments to this function are incorrect | |
b7449926 | 8 | | |
60c5eb7d | 9 | = note: expected struct `Foo` |
1b1a35ee | 10 | found struct `Box<Foo>` |
923072b8 FG |
11 | note: function defined here |
12 | --> $DIR/terr-sorts.rs:8:4 | |
13 | | | |
14 | LL | fn want_foo(f: Foo) {} | |
15 | | ^^^^^^^^ ------ | |
5099ac24 | 16 | help: consider unboxing the value |
3c0e092e XL |
17 | | |
18 | LL | want_foo(*b); | |
19 | | + | |
b7449926 XL |
20 | |
21 | error: aborting due to previous error | |
22 | ||
23 | For more information about this error, try `rustc --explain E0308`. |