]> git.lizzy.rs Git - rust.git/blob - tests/ui/error-should-say-copy-not-pod.stderr
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / 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 |     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    |
9 note: required by a bound in `check_bound`
10   --> $DIR/error-should-say-copy-not-pod.rs:3:18
11    |
12 LL | fn check_bound<T:Copy>(_: T) {}
13    |                  ^^^^ required by this bound in `check_bound`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.