Skip to content

Commit da12236

Browse files
XanewokMark-Simulacrum
authored andcommitted
save-analysis: Add a relevant test case
1 parent b561cd1 commit da12236

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// check-pass
2+
// compile-flags: -Zsave-analysis
3+
4+
trait Trait { type Assoc; }
5+
trait GenericTrait<T> {}
6+
struct Wrapper<B> { b: B }
7+
8+
fn func() {
9+
// Processing associated path in impl block definition inside a function
10+
// body does not ICE
11+
impl<B: Trait> GenericTrait<B::Assoc> for Wrapper<B> {}
12+
}
13+
14+
15+
fn main() {}

0 commit comments

Comments
 (0)