rust/src/test/ui/mut/mut-cross-borrowing.rs
2018-12-25 21:08:33 -07:00

9 lines
133 B
Rust

#![feature(box_syntax)]
fn f(_: &mut isize) {}
fn main() {
let mut x: Box<_> = box 3;
f(x) //~ ERROR mismatched types
}