fix pretty print for qpath
This commit is contained in:
parent
55794e4396
commit
775f1e5acd
2 changed files with 22 additions and 5 deletions
16
src/test/pretty/qpath-associated-type-bound.rs
Normal file
16
src/test/pretty/qpath-associated-type-bound.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// 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() { }
|
||||
Loading…
Add table
Add a link
Reference in a new issue