]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derives/issue-36617.rs
Rollup merge of #98391 - joboet:sgx_parker, r=m-ou-se
[rust.git] / src / test / ui / derives / issue-36617.rs
1 #![derive(Copy)] //~ ERROR cannot determine resolution for the attribute macro `derive`
2 //~^ ERROR `derive` attribute cannot be used at crate level
3
4 #![test]//~ ERROR cannot determine resolution for the attribute macro `test`
5 //~^ ERROR `test` attribute cannot be used at crate level
6
7 #![test_case]//~ ERROR cannot determine resolution for the attribute macro `test_case`
8 //~^ ERROR `test_case` attribute cannot be used at crate level
9
10 #![bench]//~ ERROR cannot determine resolution for the attribute macro `bench`
11 //~^ ERROR `bench` attribute cannot be used at crate level
12
13 #![global_allocator]//~ ERROR cannot determine resolution for the attribute macro `global_allocator`
14 //~^ ERROR `global_allocator` attribute cannot be used at crate level
15
16 fn main() {}