fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
636 B13 linesraw
1error[E0277]: the trait bound `std::option::Option<Bar>: std::marker::Copy` is not satisfied
2  --> $DIR/const-fns.rs:18:35
3   |
4LL |     const ARR: [Option<Bar>; 2] = [type_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
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0277`.