]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/attrs-on-params.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / attributes / attrs-on-params.rs
1 // This checks that incorrect params on function parameters are caught
2
3 fn function(#[inline] param: u32) {
4     //~^ ERROR attribute should be applied to function or closure
5     //~| ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes
6 }
7
8 fn main() {}