]> git.lizzy.rs Git - rust.git/blob - tests/ui/kindck/kindck-copy.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / kindck / kindck-copy.stderr
1 error[E0277]: the trait bound `&'static mut isize: Copy` is not satisfied
2   --> $DIR/kindck-copy.rs:27:19
3    |
4 LL |     assert_copy::<&'static mut isize>();
5    |                   ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `&'static mut isize`
6    |
7 note: required by a bound in `assert_copy`
8   --> $DIR/kindck-copy.rs:5:18
9    |
10 LL | fn assert_copy<T:Copy>() { }
11    |                  ^^^^ required by this bound in `assert_copy`
12 help: consider removing the leading `&`-reference
13    |
14 LL -     assert_copy::<&'static mut isize>();
15 LL +     assert_copy::<isize>();
16    |
17
18 error[E0277]: the trait bound `&'a mut isize: Copy` is not satisfied
19   --> $DIR/kindck-copy.rs:28:19
20    |
21 LL |     assert_copy::<&'a mut isize>();
22    |                   ^^^^^^^^^^^^^ the trait `Copy` is not implemented for `&'a mut isize`
23    |
24 note: required by a bound in `assert_copy`
25   --> $DIR/kindck-copy.rs:5:18
26    |
27 LL | fn assert_copy<T:Copy>() { }
28    |                  ^^^^ required by this bound in `assert_copy`
29 help: consider removing the leading `&`-reference
30    |
31 LL -     assert_copy::<&'a mut isize>();
32 LL +     assert_copy::<isize>();
33    |
34
35 error[E0277]: the trait bound `Box<isize>: Copy` is not satisfied
36   --> $DIR/kindck-copy.rs:31:19
37    |
38 LL |     assert_copy::<Box<isize>>();
39    |                   ^^^^^^^^^^ the trait `Copy` is not implemented for `Box<isize>`
40    |
41 note: required by a bound in `assert_copy`
42   --> $DIR/kindck-copy.rs:5:18
43    |
44 LL | fn assert_copy<T:Copy>() { }
45    |                  ^^^^ required by this bound in `assert_copy`
46
47 error[E0277]: the trait bound `String: Copy` is not satisfied
48   --> $DIR/kindck-copy.rs:32:19
49    |
50 LL |     assert_copy::<String>();
51    |                   ^^^^^^ the trait `Copy` is not implemented for `String`
52    |
53 note: required by a bound in `assert_copy`
54   --> $DIR/kindck-copy.rs:5:18
55    |
56 LL | fn assert_copy<T:Copy>() { }
57    |                  ^^^^ required by this bound in `assert_copy`
58
59 error[E0277]: the trait bound `Vec<isize>: Copy` is not satisfied
60   --> $DIR/kindck-copy.rs:33:19
61    |
62 LL |     assert_copy::<Vec<isize> >();
63    |                   ^^^^^^^^^^ the trait `Copy` is not implemented for `Vec<isize>`
64    |
65 note: required by a bound in `assert_copy`
66   --> $DIR/kindck-copy.rs:5:18
67    |
68 LL | fn assert_copy<T:Copy>() { }
69    |                  ^^^^ required by this bound in `assert_copy`
70
71 error[E0277]: the trait bound `Box<&'a mut isize>: Copy` is not satisfied
72   --> $DIR/kindck-copy.rs:34:19
73    |
74 LL |     assert_copy::<Box<&'a mut isize>>();
75    |                   ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Box<&'a mut isize>`
76    |
77 note: required by a bound in `assert_copy`
78   --> $DIR/kindck-copy.rs:5:18
79    |
80 LL | fn assert_copy<T:Copy>() { }
81    |                  ^^^^ required by this bound in `assert_copy`
82
83 error[E0277]: the trait bound `Box<dyn Dummy>: Copy` is not satisfied
84   --> $DIR/kindck-copy.rs:42:19
85    |
86 LL |     assert_copy::<Box<dyn Dummy>>();
87    |                   ^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Box<dyn Dummy>`
88    |
89 note: required by a bound in `assert_copy`
90   --> $DIR/kindck-copy.rs:5:18
91    |
92 LL | fn assert_copy<T:Copy>() { }
93    |                  ^^^^ required by this bound in `assert_copy`
94
95 error[E0277]: the trait bound `Box<dyn Dummy + Send>: Copy` is not satisfied
96   --> $DIR/kindck-copy.rs:43:19
97    |
98 LL |     assert_copy::<Box<dyn Dummy + Send>>();
99    |                   ^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Box<dyn Dummy + Send>`
100    |
101 note: required by a bound in `assert_copy`
102   --> $DIR/kindck-copy.rs:5:18
103    |
104 LL | fn assert_copy<T:Copy>() { }
105    |                  ^^^^ required by this bound in `assert_copy`
106
107 error[E0277]: the trait bound `&'a mut (dyn Dummy + Send + 'a): Copy` is not satisfied
108   --> $DIR/kindck-copy.rs:46:19
109    |
110 LL |     assert_copy::<&'a mut (dyn Dummy + Send)>();
111    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `&'a mut (dyn Dummy + Send + 'a)`
112    |
113 note: required by a bound in `assert_copy`
114   --> $DIR/kindck-copy.rs:5:18
115    |
116 LL | fn assert_copy<T:Copy>() { }
117    |                  ^^^^ required by this bound in `assert_copy`
118
119 error[E0277]: the trait bound `MyNoncopyStruct: Copy` is not satisfied
120   --> $DIR/kindck-copy.rs:64:19
121    |
122 LL |     assert_copy::<MyNoncopyStruct>();
123    |                   ^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `MyNoncopyStruct`
124    |
125 note: required by a bound in `assert_copy`
126   --> $DIR/kindck-copy.rs:5:18
127    |
128 LL | fn assert_copy<T:Copy>() { }
129    |                  ^^^^ required by this bound in `assert_copy`
130
131 error[E0277]: the trait bound `Rc<isize>: Copy` is not satisfied
132   --> $DIR/kindck-copy.rs:67:19
133    |
134 LL |     assert_copy::<Rc<isize>>();
135    |                   ^^^^^^^^^ the trait `Copy` is not implemented for `Rc<isize>`
136    |
137 note: required by a bound in `assert_copy`
138   --> $DIR/kindck-copy.rs:5:18
139    |
140 LL | fn assert_copy<T:Copy>() { }
141    |                  ^^^^ required by this bound in `assert_copy`
142
143 error: aborting due to 11 previous errors
144
145 For more information about this error, try `rustc --explain E0277`.