From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/pretty/gat-bounds.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/pretty/gat-bounds.rs (limited to 'tests/pretty/gat-bounds.rs') diff --git a/tests/pretty/gat-bounds.rs b/tests/pretty/gat-bounds.rs new file mode 100644 index 000000000..0a361a383 --- /dev/null +++ b/tests/pretty/gat-bounds.rs @@ -0,0 +1,16 @@ +// Check that associated types print generic parameters and where clauses. +// See issue #67509. + +// pretty-compare-only + +trait X { + type Y: Trait where Self: Sized; +} + +impl X for () { + type Y where Self: Sized = u32; +} + +fn f = i32>>() {} + +fn main() { } -- cgit v1.2.3