]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-36400.rs
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / 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 }