Skip to content

Commit

Permalink
save-analysis: Add a relevant test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Oct 17, 2019
1 parent 5fe88ab commit ad6ce46
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/ui/save-analysis/issue-65411.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit ad6ce46

Please sign in to comment.