]> git.proxmox.com Git - rustc.git/blame - src/test/ui/attributes/attrs-on-params.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / attributes / attrs-on-params.stderr
CommitLineData
923072b8 1error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
6a06907d
XL
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`.