summaryrefslogtreecommitdiffstats
path: root/tests/ui/mut/mut-ref.rs
blob: 80990b2bfdef03f7f4cc7e643d50adeacc9a5a83 (plain)
1
2
3
4
fn main() {
    let mut ref x = 10; //~ ERROR the order of `mut` and `ref` is incorrect
    let ref mut y = 11;
}