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