Sign in
fuchsia
/
third_party
/
rust
/
91856ed52c58aa5ba66a015354d1cc69e9779bdf
/
.
/
src
/
test
/
ui
/
E0508-fail.rs
blob: 20eac6cd3519f2a368ab591c35e5b4c48dbdf4c6 [
file
] [
log
] [
blame
]
// revisions: ast mir
//[mir]compile-flags: -Z borrowck=mir
struct
NonCopy
;
fn
main
()
{
let
array
=
[
NonCopy
;
1
];
let
_value
=
array
[
0
];
//[ast]~ ERROR [E0508]
//[mir]~^ ERROR [E0508]
}