]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/associated-type-bounds/return-type-notation/unpretty-parenthesized.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / associated-type-bounds / return-type-notation / unpretty-parenthesized.rs
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 (file)
index 0000000..9129f37
--- /dev/null
@@ -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() {}