Skip to content

Commit b9fdc5d

Browse files
committed
tests: ui: compile-fail: pin_data: fix twice stderr
The nightly compiler improved the error message, removing a strange error.
1 parent b3a3393 commit b9fdc5d

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

tests/ui/compile-fail/pin_data/twice.stderr

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,6 @@ error[E0119]: conflicting implementations of trait `HasPinData` for type `Foo`
99
|
1010
= note: this error originates in the macro `$crate::__pin_data` which comes from the expansion of the attribute macro `pin_data` (in Nightly builds, run with -Z macro-backtrace for more info)
1111

12-
error[E0282]: type annotations needed
13-
--> tests/ui/compile-fail/pin_data/twice.rs:3:1
14-
|
15-
3 | #[pin_data]
16-
| ^^^^^^^^^^^ cannot infer type
17-
|
18-
note: the requirement `_ <: _` appears on the `impl`'s method `__pin_data` but not on the corresponding trait's method
19-
--> src/__internal.rs
20-
|
21-
| pub unsafe trait HasPinData {
22-
| ---------- in this trait
23-
...
24-
| unsafe fn __pin_data() -> Self::PinData;
25-
| ^^^^^^^^^^ this trait's method doesn't have the requirement `_ <: _`
26-
= note: this error originates in the macro `$crate::__pin_data` which comes from the expansion of the attribute macro `pin_data` (in Nightly builds, run with -Z macro-backtrace for more info)
27-
2812
error[E0119]: conflicting implementations of trait `Unpin` for type `Foo`
2913
--> tests/ui/compile-fail/pin_data/twice.rs:3:1
3014
|
@@ -35,19 +19,3 @@ error[E0119]: conflicting implementations of trait `Unpin` for type `Foo`
3519
| conflicting implementation for `Foo`
3620
|
3721
= note: this error originates in the macro `$crate::__pin_data` which comes from the expansion of the attribute macro `pin_data` (in Nightly builds, run with -Z macro-backtrace for more info)
38-
39-
error[E0282]: type annotations needed
40-
--> tests/ui/compile-fail/pin_data/twice.rs:3:1
41-
|
42-
3 | #[pin_data]
43-
| ^^^^^^^^^^^ cannot infer type
44-
|
45-
note: the requirement `_ <: _` appears on the `impl`'s method `__pin_data` but not on the corresponding trait's method
46-
--> src/__internal.rs
47-
|
48-
| pub unsafe trait HasPinData {
49-
| ---------- in this trait
50-
...
51-
| unsafe fn __pin_data() -> Self::PinData;
52-
| ^^^^^^^^^^ this trait's method doesn't have the requirement `_ <: _`
53-
= note: this error originates in the macro `$crate::__pin_data` which comes from the expansion of the attribute macro `pin_data` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)