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