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