]> git.lizzy.rs Git - rust.git/blob - tests/ui/attributes/attrs-on-params.stderr
Rollup merge of #107761 - oli-obk:miri_🪵, r=TaKO8Ki
[rust.git] / tests / ui / attributes / attrs-on-params.stderr
1 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
2   --> $DIR/attrs-on-params.rs:3:13
3    |
4 LL | fn function(#[inline] param: u32) {
5    |             ^^^^^^^^^
6
7 error[E0518]: attribute should be applied to function or closure
8   --> $DIR/attrs-on-params.rs:3:13
9    |
10 LL | fn function(#[inline] param: u32) {
11    |             ^^^^^^^^^-----------
12    |             |
13    |             not a function or closure
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0518`.