@@ -2,10 +2,8 @@ error[E0277]: the trait bound `B<C>: Copy` is not satisfied
2
2
--> $DIR/deriving-copyclone.rs:31:26
3
3
|
4
4
LL | is_copy(B { a: 1, b: C });
5
- | ------- ^
6
- | | |
7
- | | the trait `Copy` is not implemented for `B<C>`
8
- | | help: consider borrowing here: `&`
5
+ | ------- ^ the trait `Copy` is not implemented for `B<C>`
6
+ | |
9
7
| required by a bound introduced by this call
10
8
|
11
9
note: required for `B<C>` to implement `Copy`
@@ -18,15 +16,17 @@ note: required by a bound in `is_copy`
18
16
|
19
17
LL | fn is_copy<T: Copy>(_: T) {}
20
18
| ^^^^ required by this bound in `is_copy`
19
+ help: consider borrowing here
20
+ |
21
+ LL | is_copy(B { a: 1, b: &C });
22
+ | +
21
23
22
24
error[E0277]: the trait bound `B<C>: Clone` is not satisfied
23
25
--> $DIR/deriving-copyclone.rs:32:27
24
26
|
25
27
LL | is_clone(B { a: 1, b: C });
26
- | -------- ^
27
- | | |
28
- | | the trait `Clone` is not implemented for `B<C>`
29
- | | help: consider borrowing here: `&`
28
+ | -------- ^ the trait `Clone` is not implemented for `B<C>`
29
+ | |
30
30
| required by a bound introduced by this call
31
31
|
32
32
note: required for `B<C>` to implement `Clone`
@@ -39,15 +39,17 @@ note: required by a bound in `is_clone`
39
39
|
40
40
LL | fn is_clone<T: Clone>(_: T) {}
41
41
| ^^^^^ required by this bound in `is_clone`
42
+ help: consider borrowing here
43
+ |
44
+ LL | is_clone(B { a: 1, b: &C });
45
+ | +
42
46
43
47
error[E0277]: the trait bound `B<D>: Copy` is not satisfied
44
48
--> $DIR/deriving-copyclone.rs:35:26
45
49
|
46
50
LL | is_copy(B { a: 1, b: D });
47
- | ------- ^
48
- | | |
49
- | | the trait `Copy` is not implemented for `B<D>`
50
- | | help: consider borrowing here: `&`
51
+ | ------- ^ the trait `Copy` is not implemented for `B<D>`
52
+ | |
51
53
| required by a bound introduced by this call
52
54
|
53
55
note: required for `B<D>` to implement `Copy`
@@ -60,6 +62,10 @@ note: required by a bound in `is_copy`
60
62
|
61
63
LL | fn is_copy<T: Copy>(_: T) {}
62
64
| ^^^^ required by this bound in `is_copy`
65
+ help: consider borrowing here
66
+ |
67
+ LL | is_copy(B { a: 1, b: &D });
68
+ | +
63
69
64
70
error: aborting due to 3 previous errors
65
71
0 commit comments