2017-11-13 22:40:22 +00:00
|
|
|
// revisions: ast mir
|
2017-11-19 23:37:59 +01:00
|
|
|
//[mir]compile-flags: -Z borrowck=mir
|
2017-11-13 22:40:22 +00:00
|
|
|
|
2016-08-26 00:14:20 +02:00
|
|
|
struct NonCopy;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let array = [NonCopy; 1];
|
2017-11-19 23:37:59 +01:00
|
|
|
let _value = array[0]; //[ast]~ ERROR [E0508]
|
|
|
|
//[mir]~^ ERROR [E0508]
|
2016-08-26 00:14:20 +02:00
|
|
|
}
|