]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/rfc-2203-const-array-repeat-exprs/migrate-fail.rs
1 // ignore-tidy-linelength
2 // ignore-compare-mode-nll
3 // compile-flags: -Z borrowck=migrate
4 #![feature(const_in_array_repeat_expressions)]
7 // Some type that is not copyable.
13 fn no_impl_copy_empty_value_multiple_elements() {
15 let arr
: [Option
<Bar
>; 2] = [x
; 2];
16 //~^ ERROR the trait bound `std::option::Option<Bar>: std::marker::Copy` is not satisfied [E0277]
19 fn no_impl_copy_value_multiple_elements() {
21 let arr
: [Option
<Bar
>; 2] = [x
; 2];
22 //~^ ERROR the trait bound `std::option::Option<Bar>: std::marker::Copy` is not satisfied [E0277]