rust/tests/pretty/qpath-associated-type-bound.rs

17 lines
175 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() {}