summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-try-feature-gate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-try-feature-gate.rs')
-rw-r--r--src/test/ui/consts/const-try-feature-gate.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/ui/consts/const-try-feature-gate.rs b/src/test/ui/consts/const-try-feature-gate.rs
deleted file mode 100644
index 0839c23a0..000000000
--- a/src/test/ui/consts/const-try-feature-gate.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-// gate-test-const_try
-
-const fn t() -> Option<()> {
- Some(())?;
- //~^ error: `?` is not allowed in a `const fn`
- None
-}
-
-fn main() {}