-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't immediately error for cycles during normalization
- Loading branch information
1 parent
1c5fe50
commit 1101496
Showing
16 changed files
with
176 additions
and
90 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
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
21 changes: 11 additions & 10 deletions
21
src/test/ui/associated-types/defaults-cyclic-fail-1.stderr
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,33 +1,34 @@ | ||
error[E0275]: overflow evaluating the requirement `<() as Tr>::B` | ||
error[E0275]: overflow evaluating the requirement `<() as Tr>::B == _` | ||
--> $DIR/defaults-cyclic-fail-1.rs:10:6 | ||
| | ||
LL | impl Tr for () {} | ||
| ^^ | ||
|
||
error[E0275]: overflow evaluating the requirement `<bool as Tr>::B` | ||
error[E0271]: type mismatch resolving `<bool as Tr>::B == _` | ||
--> $DIR/defaults-cyclic-fail-1.rs:28:6 | ||
| | ||
LL | impl Tr for bool { | ||
| ^^ | ||
| ^^ cyclic type of infinite size | ||
|
||
error[E0275]: overflow evaluating the requirement `<usize as Tr>::B` | ||
error[E0271]: type mismatch resolving `<usize as Tr>::B == _` | ||
--> $DIR/defaults-cyclic-fail-1.rs:35:6 | ||
| | ||
LL | impl Tr for usize { | ||
| ^^ | ||
| ^^ cyclic type of infinite size | ||
|
||
error[E0275]: overflow evaluating the requirement `<bool as Tr>::B` | ||
error[E0271]: type mismatch resolving `<bool as Tr>::B == _` | ||
--> $DIR/defaults-cyclic-fail-1.rs:30:5 | ||
| | ||
LL | type A = Box<Self::B>; | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^^^^^^^^^^^^^^^^ cyclic type of infinite size | ||
|
||
error[E0275]: overflow evaluating the requirement `<usize as Tr>::A` | ||
error[E0271]: type mismatch resolving `<usize as Tr>::A == _` | ||
--> $DIR/defaults-cyclic-fail-1.rs:37:5 | ||
| | ||
LL | type B = &'static Self::A; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ cyclic type of infinite size | ||
|
||
error: aborting due to 5 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0275`. | ||
Some errors have detailed explanations: E0271, E0275. | ||
For more information about an error, try `rustc --explain E0271`. |
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
Oops, something went wrong.