rust/tests/ui/mut/mut-ref.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
114 B
Rust
Raw Normal View History

fn main() {
2017-11-20 06:13:27 -06:00
let mut ref x = 10; //~ ERROR the order of `mut` and `ref` is incorrect
let ref mut y = 11;
}