about summary refs log tree commit diff
path: root/tests/ui/attributes/attrs-on-params.stderr
blob: 91f87a954c55d52b23b4da3bbbaaf1f54ac6f4a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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