summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attributes/attrs-on-params.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/attributes/attrs-on-params.stderr')
-rw-r--r--src/test/ui/attributes/attrs-on-params.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/attributes/attrs-on-params.stderr b/src/test/ui/attributes/attrs-on-params.stderr
new file mode 100644
index 000000000..306e862cb
--- /dev/null
+++ b/src/test/ui/attributes/attrs-on-params.stderr
@@ -0,0 +1,17 @@
+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[E0518]: attribute should be applied to function or closure
+ --> $DIR/attrs-on-params.rs:3:13
+ |
+LL | fn function(#[inline] param: u32) {
+ | ^^^^^^^^^-----------
+ | |
+ | not a function or closure
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0518`.