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