mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-24 20:01:22 +00:00
12 lines
152 B
Rust
12 lines
152 B
Rust
// See issue #12534.
|
|
|
|
fn main() {}
|
|
|
|
struct A(Box<u8>);
|
|
|
|
fn f(a @ A(u): A) -> Box<u8> {
|
|
//~^ ERROR use of partially moved value
|
|
drop(a);
|
|
u
|
|
}
|