fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
590 B17 linesraw
1error: 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   |
4LL | fn function(#[inline] param: u32) {
5   |             ^^^^^^^^^
6
7error[E0518]: attribute should be applied to function or closure
8  --> $DIR/attrs-on-params.rs:3:13
9   |
10LL | fn function(#[inline] param: u32) {
11   |             ^^^^^^^^^-----------
12   |             |
13   |             not a function or closure
14
15error: aborting due to 2 previous errors
16
17For more information about this error, try `rustc --explain E0518`.