]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/bench.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / bench.rs
1 // edition:2018
2
3 #[bench] //~ ERROR use of unstable library feature 'test'
4          //~| WARN this was previously accepted
5 fn bench() {}
6
7 use bench as _; //~ ERROR use of unstable library feature 'test'
8                 //~| WARN this was previously accepted
9 fn main() {}