blob: 645122113dab2fb638c3ca2b3f6c80426b459421 [file] [log] [blame] [edit]
//@ check-pass
//@ compile-flags: -Z annotate-moves=100
// Test that valid annotate-moves flags are accepted
#[derive(Clone)]
struct TestStruct {
data: [u64; 20], // 160 bytes
}
fn main() {
let s = TestStruct { data: [42; 20] };
let _copy = s.clone();
let _moved = s;
}