]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kindck/kindck-copy.stderr
Update ui tests
[rust.git] / src / test / ui / kindck / kindck-copy.stderr
1 error[E0277]: the trait bound `&'static mut isize: std::marker::Copy` is not satisfied
2   --> $DIR/kindck-copy.rs:27:19
3    |
4 LL | fn assert_copy<T:Copy>() { }
5    |    -----------   ---- required by this bound in `assert_copy`
6 ...
7 LL |     assert_copy::<&'static mut isize>();
8    |                   ^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `&'static mut isize`
9    |
10    = help: the following implementations were found:
11              <isize as std::marker::Copy>
12
13 error[E0277]: the trait bound `&'a mut isize: std::marker::Copy` is not satisfied
14   --> $DIR/kindck-copy.rs:28:19
15    |
16 LL | fn assert_copy<T:Copy>() { }
17    |    -----------   ---- required by this bound in `assert_copy`
18 ...
19 LL |     assert_copy::<&'a mut isize>();
20    |                   ^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `&'a mut isize`
21    |
22    = help: the following implementations were found:
23              <isize as std::marker::Copy>
24
25 error[E0277]: the trait bound `std::boxed::Box<isize>: std::marker::Copy` is not satisfied
26   --> $DIR/kindck-copy.rs:31:19
27    |
28 LL | fn assert_copy<T:Copy>() { }
29    |    -----------   ---- required by this bound in `assert_copy`
30 ...
31 LL |     assert_copy::<Box<isize>>();
32    |                   ^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<isize>`
33
34 error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
35   --> $DIR/kindck-copy.rs:32:19
36    |
37 LL | fn assert_copy<T:Copy>() { }
38    |    -----------   ---- required by this bound in `assert_copy`
39 ...
40 LL |     assert_copy::<String>();
41    |                   ^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
42
43 error[E0277]: the trait bound `std::vec::Vec<isize>: std::marker::Copy` is not satisfied
44   --> $DIR/kindck-copy.rs:33:19
45    |
46 LL | fn assert_copy<T:Copy>() { }
47    |    -----------   ---- required by this bound in `assert_copy`
48 ...
49 LL |     assert_copy::<Vec<isize> >();
50    |                   ^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::vec::Vec<isize>`
51
52 error[E0277]: the trait bound `std::boxed::Box<&'a mut isize>: std::marker::Copy` is not satisfied
53   --> $DIR/kindck-copy.rs:34:19
54    |
55 LL | fn assert_copy<T:Copy>() { }
56    |    -----------   ---- required by this bound in `assert_copy`
57 ...
58 LL |     assert_copy::<Box<&'a mut isize>>();
59    |                   ^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<&'a mut isize>`
60
61 error[E0277]: the trait bound `std::boxed::Box<dyn Dummy>: std::marker::Copy` is not satisfied
62   --> $DIR/kindck-copy.rs:42:5
63    |
64 LL | fn assert_copy<T:Copy>() { }
65    |    -----------   ---- required by this bound in `assert_copy`
66 ...
67 LL |     assert_copy::<Box<dyn Dummy>>();
68    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<dyn Dummy>`
69
70 error[E0277]: the trait bound `std::boxed::Box<dyn Dummy + std::marker::Send>: std::marker::Copy` is not satisfied
71   --> $DIR/kindck-copy.rs:43:5
72    |
73 LL | fn assert_copy<T:Copy>() { }
74    |    -----------   ---- required by this bound in `assert_copy`
75 ...
76 LL |     assert_copy::<Box<dyn Dummy + Send>>();
77    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<dyn Dummy + std::marker::Send>`
78
79 error[E0277]: the trait bound `&'a mut (dyn Dummy + std::marker::Send + 'a): std::marker::Copy` is not satisfied
80   --> $DIR/kindck-copy.rs:46:19
81    |
82 LL | fn assert_copy<T:Copy>() { }
83    |    -----------   ---- required by this bound in `assert_copy`
84 ...
85 LL |     assert_copy::<&'a mut (dyn Dummy + Send)>();
86    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `&'a mut (dyn Dummy + std::marker::Send + 'a)`
87
88 error[E0277]: the trait bound `MyNoncopyStruct: std::marker::Copy` is not satisfied
89   --> $DIR/kindck-copy.rs:64:19
90    |
91 LL | fn assert_copy<T:Copy>() { }
92    |    -----------   ---- required by this bound in `assert_copy`
93 ...
94 LL |     assert_copy::<MyNoncopyStruct>();
95    |                   ^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `MyNoncopyStruct`
96
97 error[E0277]: the trait bound `std::rc::Rc<isize>: std::marker::Copy` is not satisfied
98   --> $DIR/kindck-copy.rs:67:19
99    |
100 LL | fn assert_copy<T:Copy>() { }
101    |    -----------   ---- required by this bound in `assert_copy`
102 ...
103 LL |     assert_copy::<Rc<isize>>();
104    |                   ^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::rc::Rc<isize>`
105
106 error: aborting due to 11 previous errors
107
108 For more information about this error, try `rustc --explain E0277`.