]> git.lizzy.rs Git - rust.git/blob - tests/ui/coercion/coerce-block-tail-83850.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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 }