summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2632-const-trait-impl/non-const-op-const-closure-non-const-outer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rfc-2632-const-trait-impl/non-const-op-const-closure-non-const-outer.rs')
-rw-r--r--tests/ui/rfc-2632-const-trait-impl/non-const-op-const-closure-non-const-outer.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/ui/rfc-2632-const-trait-impl/non-const-op-const-closure-non-const-outer.rs b/tests/ui/rfc-2632-const-trait-impl/non-const-op-const-closure-non-const-outer.rs
deleted file mode 100644
index cd8bb5963..000000000
--- a/tests/ui/rfc-2632-const-trait-impl/non-const-op-const-closure-non-const-outer.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-#![feature(const_closures, const_trait_impl)]
-#![allow(incomplete_features)]
-
-trait Foo {
- fn foo(&self);
-}
-
-impl Foo for () {
- fn foo(&self) {}
-}
-
-fn main() {
- (const || { (()).foo() })();
- //~^ ERROR: cannot call non-const fn
-}