diff options
| author | thiolliere <gui.thiolliere@gmail.com> | 2020-11-12 12:41:19 +0100 |
|---|---|---|
| committer | thiolliere <gui.thiolliere@gmail.com> | 2020-11-12 12:47:25 +0100 |
| commit | 775f1e5acdeae38eae7de41b22bdf6ab71e34efd (patch) | |
| tree | 487f4a68efc77db3877e081562bf517bedab8406 /src | |
| parent | 55794e43960ad3647e78ea5b0cb5ad0c5c0596a8 (diff) | |
| download | rust-775f1e5acdeae38eae7de41b22bdf6ab71e34efd.tar.gz rust-775f1e5acdeae38eae7de41b22bdf6ab71e34efd.zip | |
fix pretty print for qpath
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/pretty/qpath-associated-type-bound.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/pretty/qpath-associated-type-bound.rs b/src/test/pretty/qpath-associated-type-bound.rs new file mode 100644 index 00000000000..e06885e0388 --- /dev/null +++ b/src/test/pretty/qpath-associated-type-bound.rs @@ -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() { } |
