]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-should-say-copy-not-pod.stderr
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / error-should-say-copy-not-pod.stderr
1 error[E0277]: the trait bound `String: Copy` is not satisfied
2   --> $DIR/error-should-say-copy-not-pod.rs:6:17
3    |
4 LL | fn check_bound<T:Copy>(_: T) {}
5    |                  ---- required by this bound in `check_bound`
6 ...
7 LL |     check_bound("nocopy".to_string());
8    |                 ^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0277`.