forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
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#91875 - b-naber:mir-transform-norm-erase-re…
…g, r=Aaron1011 Use try_normalize_erasing_regions in RevealAllVisitor Fixes rust-lang#91745 Thanks to `@Aaron1011` for [pointing out the problem](rust-lang#91745 (comment)). r? `@Aaron1011`
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// check-pass | ||
|
||
pub trait Foo { | ||
type Bar; | ||
} | ||
|
||
pub trait Broken { | ||
type Assoc; | ||
fn broken(&self) where Self::Assoc: Foo; | ||
} | ||
|
||
impl<T> Broken for T { | ||
type Assoc = (); | ||
fn broken(&self) where Self::Assoc: Foo { | ||
let _x: <Self::Assoc as Foo>::Bar; | ||
} | ||
} | ||
|
||
fn main() { | ||
let _m: &dyn Broken<Assoc=()> = &(); | ||
} |