mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-01 22:28:06 +00:00
11 lines
190 B
Rust
11 lines
190 B
Rust
use std::pin::Pin;
|
|
|
|
fn method(a: Pin<&mut ()>) {}
|
|
|
|
fn main() {
|
|
let a = &mut ();
|
|
let a = Pin::new(a);
|
|
let _ = method(a);
|
|
let _ = method(a); //~ERROR use of moved value: `a`
|
|
}
|