mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 23:28:11 +00:00
17 lines
508 B
Plaintext
17 lines
508 B
Plaintext
error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
|
|
--> $DIR/attrs-on-params.rs:3:13
|
|
|
|
|
LL | fn function(#[inline] param: u32) {
|
|
| ^^^^^^^^^
|
|
|
|
error: `#[inline]` attribute cannot be used on function params
|
|
--> $DIR/attrs-on-params.rs:3:13
|
|
|
|
|
LL | fn function(#[inline] param: u32) {
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: `#[inline]` can only be applied to functions
|
|
|
|
error: aborting due to 2 previous errors
|
|
|