blob: 347f0212c7fa102f10b8f3addf3ce1512f9d8e8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Check that we report an error if an upcast box is moved twice.
fn consume(_: Box<[i32]>) {
}
fn foo(b: Box<[i32;5]>) {
consume(b);
consume(b); //~ ERROR use of moved value
}
fn main() {
}
|