fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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