]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coerce-block-tail-26978.stderr
Auto merge of #103831 - chenyukang:yukang/fix-103751-ice, r=nagisa
[rust.git] / src / test / ui / coercion / coerce-block-tail-26978.stderr
1 error[E0308]: mismatched types
2   --> $DIR/coerce-block-tail-26978.rs:9:9
3    |
4 LL |     f(&{x});
5    |         ^ expected `i32`, found struct `Box`
6    |
7    = note: expected type `i32`
8             found struct `Box<i32>`
9 help: consider unboxing the value
10    |
11 LL |     f(&{*x});
12    |         +
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.