You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/attributes/positions/README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,12 +152,12 @@ pub mod module {
152
152
fnmain() {
153
153
let_closure= #[ATTRIBUTE] //~ ERROR attributes on expressions are experimental
154
154
//~^ WARN
155
-
|_arg:u32| {};
156
-
155
+
| #[ATTRIBUTE] _arg:u32| {};//~ ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
156
+
//~^ ERROR
157
157
let_move_closure= #[ATTRIBUTE] //~ ERROR attributes on expressions are experimental
158
158
//~^ WARN
159
-
move|_arg:u32| {};
160
-
159
+
move| #[ATTRIBUTE] _arg:u32| {};//~ ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
160
+
//~^ ERROR
161
161
#[ATTRIBUTE] //~ WARN
162
162
{
163
163
#![ATTRIBUTE] //~ WARN
@@ -236,8 +236,8 @@ unsafe extern "C" {
236
236
237
237
#[ATTRIBUTE] //~ WARN
238
238
pubfnexternal_function(
239
-
arg:*mutu8,
240
-
...
239
+
#[ATTRIBUTE] arg:*mutu8,//~ ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
240
+
#[ATTRIBUTE] ...//~ ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
241
241
);
242
242
243
243
#[ATTRIBUTE] //~ WARN
@@ -248,8 +248,8 @@ unsafe extern "C" {
248
248
}
249
249
250
250
#[ATTRIBUTE] //~ WARN
251
-
pubunsafeextern"C"fnabi_function(_:u32) {}
252
-
251
+
pubunsafeextern"C"fnabi_function(#[ATTRIBUTE] _:u32) {}//~ ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
0 commit comments