summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/bench.rs
blob: 8de390becbe7d7d87d81adf498ab3d9ad6dd5c9a (plain)
1
2
3
4
5
6
7
8
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() {}