]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/issue-43106-gating-of-bench.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / issue-43106-gating-of-bench.rs
1 // The non-crate level cases are in issue-43106-gating-of-builtin-attrs.rs.
2 // See issue-12997-1.rs and issue-12997-2.rs to see how `#[bench]` is
3 // handled in "weird places" when `--test` is passed.
4
5 #![feature(custom_inner_attributes)]
6
7 #![bench                   = "4100"]
8 //~^ ERROR cannot determine resolution for the attribute macro `bench`
9 //~^^ ERROR `bench` attribute cannot be used at crate level
10 fn main() {}