]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mut/mut-cross-borrowing.rs
Rollup merge of #67749 - gilescope:keyword-in, r=Dylan-DPC
[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 }