rust/src/test/ui/E0508.rs

7 lines
107 B
Rust
Raw Normal View History

2018-05-17 03:17:06 -05:00
struct NonCopy;
fn main() {
let array = [NonCopy; 1];
let _value = array[0]; //~ ERROR [E0508]
2018-05-17 03:17:06 -05:00
}