fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
568 B13 linesraw
1error[E0277]: the trait bound `Foo<std::string::String>: std::marker::Copy` is not satisfied
2  --> $DIR/trait-error.rs:8:5
3   |
4LL |     [Foo(String::new()); 4];
5   |     ^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `Foo<std::string::String>`
6   |
7   = help: the following implementations were found:
8             <Foo<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`.