]> git.lizzy.rs Git - rust.git/blob - tests/ui/coercion/coerce-block-tail-83850.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / coercion / coerce-block-tail-83850.rs
1 // check-fail
2 fn f(_: &[i32]) {}
3
4 fn main() {
5     f(&Box::new([1, 2]));
6     //~^ ERROR mismatched types
7 }