]> git.proxmox.com Git - rustc.git/blame - src/test/ui/derives/deriving-copyclone.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / derives / deriving-copyclone.stderr
CommitLineData
1b1a35ee 1error[E0277]: the trait bound `C: Copy` is not satisfied
e1599b0c 2 --> $DIR/deriving-copyclone.rs:31:13
b7449926 3 |
e1599b0c 4LL | fn is_copy<T: Copy>(_: T) {}
ba9703b0 5 | ---- required by this bound in `is_copy`
e1599b0c 6...
532ac7d7 7LL | is_copy(B { a: 1, b: C });
60c5eb7d
XL
8 | ^^^^^^^^^^^^^^^^
9 | |
1b1a35ee 10 | expected an implementor of trait `Copy`
60c5eb7d 11 | help: consider borrowing here: `&B { a: 1, b: C }`
b7449926 12 |
1b1a35ee 13 = note: required because of the requirements on the impl of `Copy` for `B<C>`
b7449926 14
1b1a35ee 15error[E0277]: the trait bound `C: Clone` is not satisfied
e1599b0c 16 --> $DIR/deriving-copyclone.rs:32:14
b7449926 17 |
e1599b0c 18LL | fn is_clone<T: Clone>(_: T) {}
ba9703b0 19 | ----- required by this bound in `is_clone`
e1599b0c 20...
532ac7d7 21LL | is_clone(B { a: 1, b: C });
60c5eb7d
XL
22 | ^^^^^^^^^^^^^^^^
23 | |
1b1a35ee 24 | expected an implementor of trait `Clone`
60c5eb7d 25 | help: consider borrowing here: `&B { a: 1, b: C }`
b7449926 26 |
1b1a35ee 27 = note: required because of the requirements on the impl of `Clone` for `B<C>`
b7449926 28
1b1a35ee 29error[E0277]: the trait bound `D: Copy` is not satisfied
e1599b0c 30 --> $DIR/deriving-copyclone.rs:35:13
b7449926 31 |
e1599b0c 32LL | fn is_copy<T: Copy>(_: T) {}
ba9703b0 33 | ---- required by this bound in `is_copy`
e1599b0c 34...
532ac7d7 35LL | is_copy(B { a: 1, b: D });
60c5eb7d
XL
36 | ^^^^^^^^^^^^^^^^
37 | |
1b1a35ee 38 | expected an implementor of trait `Copy`
60c5eb7d 39 | help: consider borrowing here: `&B { a: 1, b: D }`
b7449926 40 |
1b1a35ee 41 = note: required because of the requirements on the impl of `Copy` for `B<D>`
b7449926
XL
42
43error: aborting due to 3 previous errors
44
45For more information about this error, try `rustc --explain E0277`.