forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#46801 - estebank:impl-extra-req-def-span, r…
…=arielb1 Point at def span in "impl has stricter requirements" diagnostic
- Loading branch information
Showing
8 changed files
with
23 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
error[E0276]: impl has stricter requirements than trait | ||
--> $DIR/region-extra-2.rs:19:5 | ||
| | ||
15 | fn renew<'b: 'a>(self) -> &'b mut [T]; | ||
| -------------------------------------- definition of `renew` from trait | ||
15 | fn renew<'b: 'a>(self) -> &'b mut [T]; | ||
| -------------------------------------- definition of `renew` from trait | ||
... | ||
19 | / fn renew<'b: 'a>(self) -> &'b mut [T] where 'a: 'b { | ||
20 | | //~^ ERROR E0276 | ||
21 | | &mut self[..] | ||
22 | | } | ||
| |_____^ impl has extra requirement `'a: 'b` | ||
19 | fn renew<'b: 'a>(self) -> &'b mut [T] where 'a: 'b { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `'a: 'b` | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
error[E0276]: impl has stricter requirements than trait | ||
--> $DIR/traits-misc-mismatch-2.rs:23:5 | ||
| | ||
19 | fn zip<B, U: Iterator<U>>(self, other: U) -> ZipIterator<Self, U>; | ||
| ------------------------------------------------------------------ definition of `zip` from trait | ||
19 | fn zip<B, U: Iterator<U>>(self, other: U) -> ZipIterator<Self, U>; | ||
| ------------------------------------------------------------------ definition of `zip` from trait | ||
... | ||
23 | / fn zip<B, U: Iterator<B>>(self, other: U) -> ZipIterator<T, U> { | ||
24 | | //~^ ERROR E0276 | ||
25 | | ZipIterator{a: self, b: other} | ||
26 | | } | ||
| |_____^ impl has extra requirement `U: Iterator<B>` | ||
23 | fn zip<B, U: Iterator<B>>(self, other: U) -> ZipIterator<T, U> { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `U: Iterator<B>` | ||
|
||
error: aborting due to previous error | ||
|