summaryrefslogtreecommitdiffstats
path: root/tests/ui/did_you_mean/issue-40823.rs
blob: 0f8c74554677866aed1ae3377f346c1017a2f483 (plain)
1
2
3
4
fn main() {
    let mut buf = &[1, 2, 3, 4];
    buf.iter_mut(); //~ ERROR cannot borrow `*buf` as mutable, as it is behind a `&` reference
}