2021-02-09 15:17:10 -06:00
|
|
|
// This checks that incorrect params on function parameters are caught
|
|
|
|
|
|
|
|
fn function(#[inline] param: u32) {
|
|
|
|
//~^ ERROR attribute should be applied to function or closure
|
2022-06-03 17:04:19 -05:00
|
|
|
//~| ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes
|
2021-02-09 15:17:10 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|