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_generic.stderr
+6-10Lines changed: 6 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ error[E0592]: duplicate definitions with name `__pymethod___class_getitem____`
12
12
error[E0592]: duplicate definitions with name `__class_getitem__`
13
13
--> tests/ui/invalid_pyclass_generic.rs:4:1
14
14
|
15
-
4 | #[pyclass(generic)]
15
+
4 | #[pyclass(generic)]
16
16
| ^^^^^^^^^^^^^^^^^^^ duplicate definitions for `__class_getitem__`
17
17
...
18
18
15 | / pub fn __class_getitem__(
@@ -44,13 +44,13 @@ note: candidate #2 is defined in an impl for the type `ClassRedefinesClassGetIte
44
44
error[E0034]: multiple applicable items in scope
45
45
--> tests/ui/invalid_pyclass_generic.rs:4:1
46
46
|
47
-
4 | #[pyclass(generic)]
47
+
4 | #[pyclass(generic)]
48
48
| ^^^^^^^^^^^^^^^^^^^ multiple `__class_getitem__` found
49
49
|
50
50
note: candidate #1 is defined in an impl for the type `ClassRedefinesClassGetItem`
51
51
--> tests/ui/invalid_pyclass_generic.rs:4:1
52
52
|
53
-
4 | #[pyclass(generic)]
53
+
4 | #[pyclass(generic)]
54
54
| ^^^^^^^^^^^^^^^^^^^
55
55
note: candidate #2 is defined in an impl for the type `ClassRedefinesClassGetItem`
56
56
--> tests/ui/invalid_pyclass_generic.rs:15:5
@@ -70,8 +70,6 @@ error[E0034]: multiple applicable items in scope
70
70
|
71
71
= note: candidate #1 is defined in an impl for the type `IntoPyObjectConverter<Result<T, E>>`
72
72
= note: candidate #2 is defined in an impl for the type `IntoPyObjectConverter<T>`
73
-
= note: candidate #3 is defined in an impl for the type `UnknownReturnResultType<Result<T, E>>`
74
-
= note: candidate #4 is defined in an impl for the type `UnknownReturnType<T>`
75
73
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
76
74
77
75
error[E0308]: mismatched types
@@ -94,12 +92,12 @@ error[E0034]: multiple applicable items in scope
94
92
note: candidate #1 is defined in an impl for the type `ClassRedefinesClassGetItem`
95
93
--> tests/ui/invalid_pyclass_generic.rs:4:1
96
94
|
97
-
4 | #[pyclass(generic)]
95
+
4 | #[pyclass(generic)]
98
96
| ^^^^^^^^^^^^^^^^^^^
99
97
note: candidate #2 is defined in an impl for the type `ClassRedefinesClassGetItem`
100
98
--> tests/ui/invalid_pyclass_generic.rs:7:1
101
99
|
102
-
7 | #[pymethods]
100
+
7 | #[pymethods]
103
101
| ^^^^^^^^^^^^
104
102
= 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)
105
103
@@ -112,7 +110,7 @@ error[E0034]: multiple applicable items in scope
112
110
note: candidate #1 is defined in an impl for the type `ClassRedefinesClassGetItem`
113
111
--> tests/ui/invalid_pyclass_generic.rs:4:1
114
112
|
115
-
4 | #[pyclass(generic)]
113
+
4 | #[pyclass(generic)]
116
114
| ^^^^^^^^^^^^^^^^^^^
117
115
note: candidate #2 is defined in an impl for the type `ClassRedefinesClassGetItem`
118
116
--> tests/ui/invalid_pyclass_generic.rs:15:5
@@ -132,5 +130,3 @@ error[E0034]: multiple applicable items in scope
132
130
|
133
131
= note: candidate #1 is defined in an impl for the type `IntoPyObjectConverter<Result<T, E>>`
134
132
= note: candidate #2 is defined in an impl for the type `IntoPyObjectConverter<T>`
135
-
= note: candidate #3 is defined in an impl for the type `UnknownReturnResultType<Result<T, E>>`
136
-
= note: candidate #4 is defined in an impl for the type `UnknownReturnType<T>`
0 commit comments