summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/bench.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/feature-gates/bench.rs')
-rw-r--r--src/test/ui/feature-gates/bench.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/bench.rs b/src/test/ui/feature-gates/bench.rs
new file mode 100644
index 000000000..8de390bec
--- /dev/null
+++ b/src/test/ui/feature-gates/bench.rs
@@ -0,0 +1,9 @@
+// edition:2018
+
+#[bench] //~ ERROR use of unstable library feature 'test'
+ //~| WARN this was previously accepted
+fn bench() {}
+
+use bench as _; //~ ERROR use of unstable library feature 'test'
+ //~| WARN this was previously accepted
+fn main() {}