fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
4.6 KiB108 linesraw
1error[E0277]: the trait bound `&'static mut isize: std::marker::Copy` is not satisfied
2  --> $DIR/kindck-copy.rs:27:19
3   |
4LL | fn assert_copy<T:Copy>() { }
5   |    -----------   ---- required by this bound in `assert_copy`
6...
7LL |     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
13error[E0277]: the trait bound `&'a mut isize: std::marker::Copy` is not satisfied
14  --> $DIR/kindck-copy.rs:28:19
15   |
16LL | fn assert_copy<T:Copy>() { }
17   |    -----------   ---- required by this bound in `assert_copy`
18...
19LL |     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
25error[E0277]: the trait bound `std::boxed::Box<isize>: std::marker::Copy` is not satisfied
26  --> $DIR/kindck-copy.rs:31:19
27   |
28LL | fn assert_copy<T:Copy>() { }
29   |    -----------   ---- required by this bound in `assert_copy`
30...
31LL |     assert_copy::<Box<isize>>();
32   |                   ^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<isize>`
33
34error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
35  --> $DIR/kindck-copy.rs:32:19
36   |
37LL | fn assert_copy<T:Copy>() { }
38   |    -----------   ---- required by this bound in `assert_copy`
39...
40LL |     assert_copy::<String>();
41   |                   ^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
42
43error[E0277]: the trait bound `std::vec::Vec<isize>: std::marker::Copy` is not satisfied
44  --> $DIR/kindck-copy.rs:33:19
45   |
46LL | fn assert_copy<T:Copy>() { }
47   |    -----------   ---- required by this bound in `assert_copy`
48...
49LL |     assert_copy::<Vec<isize> >();
50   |                   ^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::vec::Vec<isize>`
51
52error[E0277]: the trait bound `std::boxed::Box<&'a mut isize>: std::marker::Copy` is not satisfied
53  --> $DIR/kindck-copy.rs:34:19
54   |
55LL | fn assert_copy<T:Copy>() { }
56   |    -----------   ---- required by this bound in `assert_copy`
57...
58LL |     assert_copy::<Box<&'a mut isize>>();
59   |                   ^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<&'a mut isize>`
60
61error[E0277]: the trait bound `std::boxed::Box<dyn Dummy>: std::marker::Copy` is not satisfied
62  --> $DIR/kindck-copy.rs:42:5
63   |
64LL | fn assert_copy<T:Copy>() { }
65   |    -----------   ---- required by this bound in `assert_copy`
66...
67LL |     assert_copy::<Box<dyn Dummy>>();
68   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<dyn Dummy>`
69
70error[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   |
73LL | fn assert_copy<T:Copy>() { }
74   |    -----------   ---- required by this bound in `assert_copy`
75...
76LL |     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
79error[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   |
82LL | fn assert_copy<T:Copy>() { }
83   |    -----------   ---- required by this bound in `assert_copy`
84...
85LL |     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
88error[E0277]: the trait bound `MyNoncopyStruct: std::marker::Copy` is not satisfied
89  --> $DIR/kindck-copy.rs:64:19
90   |
91LL | fn assert_copy<T:Copy>() { }
92   |    -----------   ---- required by this bound in `assert_copy`
93...
94LL |     assert_copy::<MyNoncopyStruct>();
95   |                   ^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `MyNoncopyStruct`
96
97error[E0277]: the trait bound `std::rc::Rc<isize>: std::marker::Copy` is not satisfied
98  --> $DIR/kindck-copy.rs:67:19
99   |
100LL | fn assert_copy<T:Copy>() { }
101   |    -----------   ---- required by this bound in `assert_copy`
102...
103LL |     assert_copy::<Rc<isize>>();
104   |                   ^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::rc::Rc<isize>`
105
106error: aborting due to 11 previous errors
107
108For more information about this error, try `rustc --explain E0277`.