rust/tests/pretty/qpath-associated-type-bound.rs
2023-01-11 09:32:08 +00:00

17 lines
174 B
Rust

// pp-exact
mod m {
pub trait Tr {
type Ts: super::Tu;
}
}
trait Tu {
fn dummy() {}
}
fn foo<T: m::Tr>() { <T as m::Tr>::Ts::dummy(); }
fn main() {}