summaryrefslogtreecommitdiffstats
path: root/tests/ui/coercion/coerce-block-tail-83850.rs
blob: 77fdf99983332eaa00261ed5512d238f0ff6c567 (plain)
1
2
3
4
5
6
7
// check-fail
fn f(_: &[i32]) {}

fn main() {
    f(&Box::new([1, 2]));
    //~^ ERROR mismatched types
}