]> git.lizzy.rs Git - rust.git/blob - src/test/ui/terr-sorts.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / terr-sorts.stderr
1 error[E0308]: mismatched types
2   --> $DIR/terr-sorts.rs:10:14
3    |
4 LL |     want_foo(b);
5    |     -------- ^ expected struct `Foo`, found struct `Box`
6    |     |
7    |     arguments to this function are incorrect
8    |
9    = note: expected struct `Foo`
10               found struct `Box<Foo>`
11 note: function defined here
12   --> $DIR/terr-sorts.rs:8:4
13    |
14 LL | fn want_foo(f: Foo) {}
15    |    ^^^^^^^^ ------
16 help: consider unboxing the value
17    |
18 LL |     want_foo(*b);
19    |              +
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0308`.