]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mut/mut-cross-borrowing.rs
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / mut / mut-cross-borrowing.rs
1 #![feature(box_syntax)]
2
3 fn f(_: &mut isize) {}
4
5 fn main() {
6     let mut x: Box<_> = box 3;
7     f(x)    //~ ERROR mismatched types
8 }