-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deeply normalize associated type bounds before proving them
- Loading branch information
1 parent
da663c7
commit 3c5af69
Showing
6 changed files
with
43 additions
and
64 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
12 changes: 1 addition & 11 deletions
12
tests/ui/traits/next-solver/coherence/trait_ref_is_knowable-norm-overflow.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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Make sure that, like the old trait solver, we end up requiring that the WC of | ||
// impl GAT matches that of the trait. This is not a restriction that we *need*, | ||
// but is a side-effect of registering the where clauses when normalizing the GAT | ||
// when proving it satisfies its item bounds. | ||
|
||
trait Foo { | ||
type T<'a>: Sized where Self: 'a; | ||
} | ||
|
||
impl Foo for &() { | ||
type T<'a> = (); | ||
} | ||
|
||
fn main() {} |