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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
174 B
Rust
Raw Normal View History

2020-11-12 05:41:19 -06:00
// pp-exact
mod m {
pub trait Tr {
type Ts: super::Tu;
}
}
trait Tu {
2021-12-01 13:45:14 -06:00
fn dummy() {}
2020-11-12 05:41:19 -06:00
}
fn foo<T: m::Tr>() { <T as m::Tr>::Ts::dummy(); }
2021-12-01 13:45:14 -06:00
fn main() {}