summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/bindings-after-at/nested-binding-mode-lint.rs
blob: fe7d1eba1d9f26577a2532a5c56aedd7adb6a04a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// check-pass

#![deny(unused_mut)]

fn main() {
    let mut is_mut @ not_mut = 42;
    &mut is_mut;
    &not_mut;
    let not_mut @ mut is_mut = 42;
    &mut is_mut;
    &not_mut;
}