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