summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/non_lifetime_binders/capture-late-ct-in-anon.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/non_lifetime_binders/capture-late-ct-in-anon.rs')
-rw-r--r--tests/ui/traits/non_lifetime_binders/capture-late-ct-in-anon.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/traits/non_lifetime_binders/capture-late-ct-in-anon.rs b/tests/ui/traits/non_lifetime_binders/capture-late-ct-in-anon.rs
new file mode 100644
index 000000000..91c6dfb8e
--- /dev/null
+++ b/tests/ui/traits/non_lifetime_binders/capture-late-ct-in-anon.rs
@@ -0,0 +1,11 @@
+#![feature(non_lifetime_binders)]
+//~^ WARN the feature `non_lifetime_binders` is incomplete
+
+fn b()
+where
+ for<const C: usize> [(); C]: Copy,
+ //~^ ERROR cannot capture late-bound const parameter in a constant
+{
+}
+
+fn main() {}