save-analysis: Add a relevant test case
This commit is contained in:
parent
5fe88abed0
commit
ad6ce46986
15
src/test/ui/save-analysis/issue-65411.rs
Normal file
15
src/test/ui/save-analysis/issue-65411.rs
Normal file
@ -0,0 +1,15 @@
|
||||
// check-pass
|
||||
// compile-flags: -Zsave-analysis
|
||||
|
||||
trait Trait { type Assoc; }
|
||||
trait GenericTrait<T> {}
|
||||
struct Wrapper<B> { b: B }
|
||||
|
||||
fn func() {
|
||||
// Processing associated path in impl block definition inside a function
|
||||
// body does not ICE
|
||||
impl<B: Trait> GenericTrait<B::Assoc> for Wrapper<B> {}
|
||||
}
|
||||
|
||||
|
||||
fn main() {}
|
Loading…
x
Reference in New Issue
Block a user