]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/rfc-2203-const-array-repeat-exprs/nll-fail.rs
1 // ignore-compare-mode-nll
2 #![feature(const_in_array_repeat_expressions, nll)]
5 // Some type that is not copyable.
11 fn no_impl_copy_empty_value_multiple_elements() {
13 let arr
: [Option
<Bar
>; 2] = [x
; 2];
14 //~^ ERROR the trait bound `Option<Bar>: Copy` is not satisfied [E0277]
17 fn no_impl_copy_value_multiple_elements() {
19 let arr
: [Option
<Bar
>; 2] = [x
; 2];
20 //~^ ERROR the trait bound `Option<Bar>: Copy` is not satisfied [E0277]