about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorthiolliere <gui.thiolliere@gmail.com>2020-11-12 12:41:19 +0100
committerthiolliere <gui.thiolliere@gmail.com>2020-11-12 12:47:25 +0100
commit775f1e5acdeae38eae7de41b22bdf6ab71e34efd (patch)
tree487f4a68efc77db3877e081562bf517bedab8406 /src
parent55794e43960ad3647e78ea5b0cb5ad0c5c0596a8 (diff)
downloadrust-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.rs16
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() { }