]> git.proxmox.com Git - rustc.git/blame - tests/ui/derives/deriving-copyclone.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / derives / deriving-copyclone.stderr
CommitLineData
3c0e092e 1error[E0277]: the trait bound `B<C>: Copy` is not satisfied
9ffffee4 2 --> $DIR/deriving-copyclone.rs:31:26
b7449926 3 |
532ac7d7 4LL | is_copy(B { a: 1, b: C });
9ffffee4 5 | ------- ^ the trait `Copy` is not implemented for `B<C>`
c295e0f8
XL
6 | |
7 | required by a bound introduced by this call
b7449926 8 |
f2b60f7d 9note: required for `B<C>` to implement `Copy`
136023e0
XL
10 --> $DIR/deriving-copyclone.rs:9:10
11 |
12LL | #[derive(Copy, Clone)]
9c376795 13 | ^^^^ unsatisfied trait bound introduced in this `derive` macro
94222f64
XL
14note: required by a bound in `is_copy`
15 --> $DIR/deriving-copyclone.rs:18:15
16 |
17LL | fn is_copy<T: Copy>(_: T) {}
18 | ^^^^ required by this bound in `is_copy`
136023e0 19 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
c295e0f8
XL
20help: consider borrowing here
21 |
9ffffee4
FG
22LL | is_copy(B { a: 1, b: &C });
23 | +
b7449926 24
3c0e092e 25error[E0277]: the trait bound `B<C>: Clone` is not satisfied
9ffffee4 26 --> $DIR/deriving-copyclone.rs:32:27
b7449926 27 |
532ac7d7 28LL | is_clone(B { a: 1, b: C });
9ffffee4 29 | -------- ^ the trait `Clone` is not implemented for `B<C>`
c295e0f8
XL
30 | |
31 | required by a bound introduced by this call
b7449926 32 |
f2b60f7d 33note: required for `B<C>` to implement `Clone`
136023e0
XL
34 --> $DIR/deriving-copyclone.rs:9:16
35 |
36LL | #[derive(Copy, Clone)]
9c376795 37 | ^^^^^ unsatisfied trait bound introduced in this `derive` macro
94222f64
XL
38note: required by a bound in `is_clone`
39 --> $DIR/deriving-copyclone.rs:19:16
40 |
41LL | fn is_clone<T: Clone>(_: T) {}
42 | ^^^^^ required by this bound in `is_clone`
136023e0 43 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
c295e0f8
XL
44help: consider borrowing here
45 |
9ffffee4
FG
46LL | is_clone(B { a: 1, b: &C });
47 | +
b7449926 48
3c0e092e 49error[E0277]: the trait bound `B<D>: Copy` is not satisfied
9ffffee4 50 --> $DIR/deriving-copyclone.rs:35:26
b7449926 51 |
532ac7d7 52LL | is_copy(B { a: 1, b: D });
9ffffee4 53 | ------- ^ the trait `Copy` is not implemented for `B<D>`
c295e0f8
XL
54 | |
55 | required by a bound introduced by this call
b7449926 56 |
f2b60f7d 57note: required for `B<D>` to implement `Copy`
136023e0
XL
58 --> $DIR/deriving-copyclone.rs:9:10
59 |
60LL | #[derive(Copy, Clone)]
9c376795 61 | ^^^^ unsatisfied trait bound introduced in this `derive` macro
94222f64
XL
62note: required by a bound in `is_copy`
63 --> $DIR/deriving-copyclone.rs:18:15
64 |
65LL | fn is_copy<T: Copy>(_: T) {}
66 | ^^^^ required by this bound in `is_copy`
136023e0 67 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
c295e0f8
XL
68help: consider borrowing here
69 |
9ffffee4
FG
70LL | is_copy(B { a: 1, b: &D });
71 | +
b7449926
XL
72
73error: aborting due to 3 previous errors
74
75For more information about this error, try `rustc --explain E0277`.