rust/tests/ui/error-codes/E0508-fail.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

2016-08-26 00:14:20 +02:00
struct NonCopy;
fn main() {
let array = [NonCopy; 1];
let _value = array[0]; //~ ERROR [E0508]
2016-08-26 00:14:20 +02:00
}