]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coerce-block-tail.stderr
Rollup merge of #103740 - notriddle:notriddle/search-results-padding-bottom, r=Dylan-DPC
[rust.git] / src / test / ui / coercion / coerce-block-tail.stderr
1 error[E0308]: mismatched types
2   --> $DIR/coerce-block-tail.rs:4:23
3    |
4 LL |     let _: &i32 = & { Box::new(1i32) };
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 |     let _: &i32 = & { *Box::new(1i32) };
12    |                       +
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.