]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coerce-block-tail-83850.rs
Auto merge of #102458 - JohnTitor:stabilize-instruction-set, r=oli-obk
[rust.git] / src / test / 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 }