1 // ignore-compare-mode-nll
2 // compile-flags: -Z borrowck=migrate
3 #![feature(const_in_array_repeat_expressions)]
6 // Some type that is not copyable.
12 fn no_impl_copy_empty_value_multiple_elements() {
14 let arr: [Option<Bar>; 2] = [x; 2];
15 //~^ ERROR the trait bound `Option<Bar>: Copy` is not satisfied [E0277]
18 fn no_impl_copy_value_multiple_elements() {
20 let arr: [Option<Bar>; 2] = [x; 2];
21 //~^ ERROR the trait bound `Option<Bar>: Copy` is not satisfied [E0277]