summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attributes/attrs-on-params.rs
blob: 158a4500bde77cc9ba6a63dc11aafb224b4ed9fb (plain)
1
2
3
4
5
6
7
8
// This checks that incorrect params on function parameters are caught

fn function(#[inline] param: u32) {
    //~^ ERROR attribute should be applied to function or closure
    //~| ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes
}

fn main() {}