summaryrefslogtreecommitdiffstats
path: root/src/test/ui/kindck/kindck-copy.stderr
blob: 9af89159a8cfcec0f98cf91bcbbff4f358b7e34d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
error[E0277]: the trait bound `&'static mut isize: Copy` is not satisfied
  --> $DIR/kindck-copy.rs:27:19
   |
LL |     assert_copy::<&'static mut isize>();
   |                   ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `&'static mut isize`
   |
   = help: the trait `Copy` is implemented for `isize`
note: required by a bound in `assert_copy`
  --> $DIR/kindck-copy.rs:5:18
   |
LL | fn assert_copy<T:Copy>() { }
   |                  ^^^^ required by this bound in `assert_copy`

error[E0277]: the trait bound `&'a mut isize: Copy` is not satisfied
  --> $DIR/kindck-copy.rs:28:19
   |
LL |     assert_copy::<&'a mut isize>();
   |                   ^^^^^^^^^^^^^ the trait `Copy` is not implemented for `&'a mut isize`
   |
   = help: the trait `Copy` is implemented for `isize`
note: required by a bound in `assert_copy`
  --> $DIR/kindck-copy.rs:5:18
   |
LL | fn assert_copy<T:Copy>() { }
   |                  ^^^^ required by this bound in `assert_copy`

error[E0277]: the trait bound `Box<isize>: Copy` is not satisfied
  --> $DIR/kindck-copy.rs:31:19
   |
LL |     assert_copy::<Box<isize>>();
   |                   ^^^^^^^^^^ the trait `Copy` is not implemented for `Box<isize>`
   |
note: required by a bound in `assert_copy`
  --> $DIR/kindck-copy.rs:5:18
   |
LL | fn assert_copy<T:Copy>() { }
   |                  ^^^^ required by this bound in `assert_copy`

error[E0277]: the trait bound `String: Copy` is not satisfied
  --> $DIR/kindck-copy.rs:32:19
   |
LL |     assert_copy::<String>();
   |                   ^^^^^^ the trait `Copy` is not implemented for `String`
   |
note: required by a bound in `assert_copy`
  --> $DIR/kindck-copy.rs:5:18
   |
LL | fn assert_copy<T:Copy>() { }
   |                  ^^^^ required by this bound in `assert_copy`

error[E0277]: the trait bound `Vec<isize>: Copy` is not satisfied
  --> $DIR/kindck-copy.rs:33:19
   |
LL |     assert_copy::<Vec<isize> >();
   |                   ^^^^^^^^^^ the trait `Copy` is not implemented for `Vec<isize>`
   |
note: required by a bound in `assert_copy`
  --> $DIR/kindck-copy.rs:5:18
   |
LL | fn assert_copy<T:Copy>() { }
   |                  ^^^^ required by this bound in `assert_copy`

error[E0277]: the trait bound `Box<&'a mut isize>: Copy` is not satisfied
  --> $DIR/kindck-copy.rs:34:19
   |
LL |     assert_copy::<Box<&'a mut isize>>();
   |                   ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Box<&'a mut isize>`
   |
note: required by a bound in `assert_copy`
  --> $DIR/kindck-copy.rs:5:18
   |
LL | fn assert_copy<T:Copy>() { }
   |                  ^^^^ required by this bound in `assert_copy`

error[E0277]: the trait bound `Box<dyn Dummy>: Copy` is not satisfied
  --> $DIR/kindck-copy.rs:42:19
   |
LL |     assert_copy::<Box<dyn Dummy>>();
   |                   ^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Box<dyn Dummy>`
   |
note: required by a bound in `assert_copy`
  --> $DIR/kindck-copy.rs:5:18
   |
LL | fn assert_copy<T:Copy>() { }
   |                  ^^^^ required by this bound in `assert_copy`

error[E0277]: the trait bound `Box<dyn Dummy + Send>: Copy` is not satisfied
  --> $DIR/kindck-copy.rs:43:19
   |
LL |     assert_copy::<Box<dyn Dummy + Send>>();
   |                   ^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Box<dyn Dummy + Send>`
   |
note: required by a bound in `assert_copy`
  --> $DIR/kindck-copy.rs:5:18
   |
LL | fn assert_copy<T:Copy>() { }
   |                  ^^^^ required by this bound in `assert_copy`

error[E0277]: the trait bound `&'a mut (dyn Dummy + Send + 'a): Copy` is not satisfied
  --> $DIR/kindck-copy.rs:46:19
   |
LL |     assert_copy::<&'a mut (dyn Dummy + Send)>();
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `&'a mut (dyn Dummy + Send + 'a)`
   |
note: required by a bound in `assert_copy`
  --> $DIR/kindck-copy.rs:5:18
   |
LL | fn assert_copy<T:Copy>() { }
   |                  ^^^^ required by this bound in `assert_copy`

error[E0277]: the trait bound `MyNoncopyStruct: Copy` is not satisfied
  --> $DIR/kindck-copy.rs:64:19
   |
LL |     assert_copy::<MyNoncopyStruct>();
   |                   ^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `MyNoncopyStruct`
   |
note: required by a bound in `assert_copy`
  --> $DIR/kindck-copy.rs:5:18
   |
LL | fn assert_copy<T:Copy>() { }
   |                  ^^^^ required by this bound in `assert_copy`

error[E0277]: the trait bound `Rc<isize>: Copy` is not satisfied
  --> $DIR/kindck-copy.rs:67:19
   |
LL |     assert_copy::<Rc<isize>>();
   |                   ^^^^^^^^^ the trait `Copy` is not implemented for `Rc<isize>`
   |
note: required by a bound in `assert_copy`
  --> $DIR/kindck-copy.rs:5:18
   |
LL | fn assert_copy<T:Copy>() { }
   |                  ^^^^ required by this bound in `assert_copy`

error: aborting due to 11 previous errors

For more information about this error, try `rustc --explain E0277`.