]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/rfc-2203-const-array-repeat-exprs/fn-call-in-non-const.stderr
Fix tests for RFC 2203 in a `const`
[rust.git] / src / test / ui / consts / rfc-2203-const-array-repeat-exprs / fn-call-in-non-const.stderr
1 error[E0277]: the trait bound `std::option::Option<Bar>: std::marker::Copy` is not satisfied
2   --> $DIR/fn-call-in-non-const.rs:16:31
3    |
4 LL |     let _: [Option<Bar>; 2] = [no_copy(); 2];
5    |                               ^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::option::Option<Bar>`
6    |
7    = help: the following implementations were found:
8              <std::option::Option<T> as std::marker::Copy>
9    = note: the `Copy` trait is required because the repeated element will be copied
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0277`.