fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
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`.