We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73936ab commit ab6ea2bCopy full SHA for ab6ea2b
src/test/pretty/gat-bounds.pp
@@ -0,0 +1,25 @@
1
+// Check that associated types print generic parameters and where clauses.
2
+// See issue #67509.
3
+
4
+// pretty-compare-only
5
+// pp-exact:gat-bounds.pp
6
7
+#![feature(generic_associated_types)]
8
9
+trait X {
10
+ type
11
+ Y<T>: Trait
12
+ where
13
+ Self: Sized;
14
+}
15
16
+impl X for () {
17
18
+ Y<T>
19
20
+ Self: Sized
21
+ =
22
+ u32;
23
24
25
+fn main() { }
src/test/pretty/gat-bounds.rs
@@ -0,0 +1,17 @@
+ type Y<T>: Trait where Self: Sized;
+ type Y<T> where Self: Sized = u32;
0 commit comments