]>
Commit | Line | Data |
---|---|---|
6a06907d XL |
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 | |
923072b8 | 5 | //~| ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes |
6a06907d XL |
6 | } |
7 | ||
8 | fn main() {} |