rust/tests/ui/error-codes/E0508.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
107 B
Rust
Raw Normal View History

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