summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-32995-2.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-32995-2.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-32995-2.rs b/src/test/ui/issues/issue-32995-2.rs
new file mode 100644
index 000000000..e713a64d3
--- /dev/null
+++ b/src/test/ui/issues/issue-32995-2.rs
@@ -0,0 +1,13 @@
+fn main() {
+ { fn f<X: ::std::marker()::Send>() {} }
+ //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
+
+ { fn f() -> impl ::std::marker()::Send { } }
+ //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
+}
+
+#[derive(Clone)]
+struct X;
+
+impl ::std::marker()::Copy for X {}
+//~^ ERROR parenthesized type parameters may only be used with a `Fn` trait