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 in function parameters
|
2021-02-09 15:17:10 -06:00
|
|
|
--> $DIR/attrs-on-params.rs:3:13
|
|
|
|
|
|
|
|
|
LL | fn function(#[inline] param: u32) {
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
|
|
|
--> $DIR/attrs-on-params.rs:3:13
|
|
|
|
|
|
|
|
|
LL | fn function(#[inline] param: u32) {
|
|
|
|
| ^^^^^^^^^-----------
|
|
|
|
| |
|
|
|
|
| not a function or closure
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0518`.
|