You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/invalid_pyclass_args.stderr
+47Lines changed: 47 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,17 @@ error[E0592]: duplicate definitions with name `__pymethod___richcmp____`
87
87
|
88
88
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
89
89
90
+
error[E0592]: duplicate definitions with name `__pymethod___hash____`
91
+
--> tests/ui/invalid_pyclass_args.rs:67:1
92
+
|
93
+
67 | #[pyclass(frozen, eq, hash)]
94
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `__pymethod___hash____`
95
+
...
96
+
71 | #[pymethods]
97
+
| ------------ other definition for `__pymethod___hash____`
98
+
|
99
+
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
100
+
90
101
error[E0369]: binary operation `==` cannot be applied to type `&EqOptRequiresEq`
91
102
--> tests/ui/invalid_pyclass_args.rs:33:11
92
103
|
@@ -168,3 +179,39 @@ help: consider annotating `HashOptRequiresHash` with `#[derive(Hash)]`
168
179
57 + #[derive(Hash)]
169
180
58 | struct HashOptRequiresHash;
170
181
|
182
+
183
+
error[E0034]: multiple applicable items in scope
184
+
--> tests/ui/invalid_pyclass_args.rs:67:1
185
+
|
186
+
67 | #[pyclass(frozen, eq, hash)]
187
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ multiple `__pymethod___hash____` found
188
+
|
189
+
note: candidate #1 is defined in an impl for the type `HashOptAndManualHash`
190
+
--> tests/ui/invalid_pyclass_args.rs:67:1
191
+
|
192
+
67 | #[pyclass(frozen, eq, hash)]
193
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
194
+
note: candidate #2 is defined in an impl for the type `HashOptAndManualHash`
195
+
--> tests/ui/invalid_pyclass_args.rs:71:1
196
+
|
197
+
71 | #[pymethods]
198
+
| ^^^^^^^^^^^^
199
+
= note: this error originates in the attribute macro `pyclass` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info)
200
+
201
+
error[E0034]: multiple applicable items in scope
202
+
--> tests/ui/invalid_pyclass_args.rs:71:1
203
+
|
204
+
71 | #[pymethods]
205
+
| ^^^^^^^^^^^^ multiple `__pymethod___hash____` found
206
+
|
207
+
note: candidate #1 is defined in an impl for the type `HashOptAndManualHash`
208
+
--> tests/ui/invalid_pyclass_args.rs:67:1
209
+
|
210
+
67 | #[pyclass(frozen, eq, hash)]
211
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
212
+
note: candidate #2 is defined in an impl for the type `HashOptAndManualHash`
213
+
--> tests/ui/invalid_pyclass_args.rs:71:1
214
+
|
215
+
71 | #[pymethods]
216
+
| ^^^^^^^^^^^^
217
+
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments