]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-blocks/migrate-fail.rs
1 // ignore-compare-mode-nll
2 // compile-flags: -Z borrowck=migrate
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 `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 `Bar: Copy` is not satisfied [E0277]