]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/rfc-2203-const-array-repeat-exprs/fn-call-in-non-const.rs
1 #![feature(const_in_array_repeat_expressions)]
3 // Some type that is not copyable.
6 const fn no_copy() -> Option
<Bar
> {
10 const fn copy() -> u32 {
15 let _
: [u32; 2] = [copy(); 2];
16 let _
: [Option
<Bar
>; 2] = [no_copy(); 2];
17 //~^ ERROR the trait bound `std::option::Option<Bar>: std::marker::Copy` is not satisfied