summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-type-bounds/return-type-notation/unpretty-parenthesized.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-type-bounds/return-type-notation/unpretty-parenthesized.rs')
-rw-r--r--tests/ui/associated-type-bounds/return-type-notation/unpretty-parenthesized.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/associated-type-bounds/return-type-notation/unpretty-parenthesized.rs b/tests/ui/associated-type-bounds/return-type-notation/unpretty-parenthesized.rs
new file mode 100644
index 000000000..9129f37e0
--- /dev/null
+++ b/tests/ui/associated-type-bounds/return-type-notation/unpretty-parenthesized.rs
@@ -0,0 +1,11 @@
+// edition: 2021
+// compile-flags: -Zunpretty=expanded
+
+trait Trait {
+ async fn method() {}
+}
+
+fn foo<T: Trait<method(i32): Send>>() {}
+//~^ ERROR associated type bounds are unstable
+
+fn main() {}