summary refs log tree commit diff
path: root/src/test/ui/mut/mut-cross-borrowing.rs
blob: 63e49c292eac705ee1267b86813aeebd11350c27 (plain)
1
2
3
4
5
6
7
8
#![feature(box_syntax)]

fn f(_: &mut isize) {}

fn main() {
    let mut x: Box<_> = box 3;
    f(x)    //~ ERROR mismatched types
}