]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-36400.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / ui / issues / issue-36400.rs
1 fn f(x: &mut u32) {}
2
3 fn main() {
4     let x = Box::new(3);
5     f(&mut *x); //~ ERROR cannot borrow `*x` as mutable, as `x` is not declared as mutable
6 }