mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 03:48:18 +00:00
8 lines
154 B
Rust
8 lines
154 B
Rust
fn method(a: Option<&mut ()>) {}
|
|
|
|
fn main() {
|
|
let a = Some(&mut ());
|
|
let _ = method(a);
|
|
let _ = method(a); //~ERROR use of moved value: `a`
|
|
}
|