]> git.proxmox.com Git - rustc.git/blob - tests/ui/typeck/terr-sorts.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / typeck / terr-sorts.stderr
1 error[E0308]: mismatched types
2 --> $DIR/terr-sorts.rs:10:14
3 |
4 LL | want_foo(b);
5 | -------- ^ expected `Foo`, found `Box<Foo>`
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`.