mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
16 lines
321 B
Rust
16 lines
321 B
Rust
// 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() {}
|