fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
519 B12 linesraw
1error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
2  --> $DIR/error-should-say-copy-not-pod.rs:6:17
3   |
4LL | fn check_bound<T:Copy>(_: T) {}
5   |    -----------   ---- required by this bound in `check_bound`
6...
7LL |     check_bound("nocopy".to_string());
8   |                 ^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0277`.