2025-03-04 14:17:06 +01:00
|
|
|
error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
|
2025-09-25 16:11:34 +01:00
|
|
|
--> $DIR/invalid.rs:131:11
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2025-03-04 14:17:06 +01:00
|
|
|
LL | fn barqux(#[rustc_force_inline] _x: u32) {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-03-08 18:58:05 +01:00
|
|
|
error[E0805]: malformed `rustc_force_inline` attribute input
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:15:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline(bar, baz)]
|
2025-03-08 18:58:05 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^----------^
|
|
|
|
|
| |
|
|
|
|
|
| expected a single argument here
|
2025-03-04 14:17:06 +01:00
|
|
|
|
|
2025-03-05 14:35:54 +01:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[rustc_force_inline(bar, baz)]
|
|
|
|
|
LL + #[rustc_force_inline = "reason"]
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[rustc_force_inline(bar, baz)]
|
2025-03-04 14:17:06 +01:00
|
|
|
LL + #[rustc_force_inline(reason)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[rustc_force_inline(bar, baz)]
|
2024-07-09 22:30:26 +00:00
|
|
|
LL + #[rustc_force_inline]
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
|
2025-03-04 14:17:06 +01:00
|
|
|
error[E0539]: malformed `rustc_force_inline` attribute input
|
|
|
|
|
--> $DIR/invalid.rs:20:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline(2)]
|
2025-03-08 18:58:05 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^-^^
|
|
|
|
|
| |
|
|
|
|
|
| expected a string literal here
|
2025-03-04 14:17:06 +01:00
|
|
|
|
|
2025-03-05 14:35:54 +01:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[rustc_force_inline(2)]
|
|
|
|
|
LL + #[rustc_force_inline = "reason"]
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[rustc_force_inline(2)]
|
2025-03-04 14:17:06 +01:00
|
|
|
LL + #[rustc_force_inline(reason)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[rustc_force_inline(2)]
|
2024-07-09 22:30:26 +00:00
|
|
|
LL + #[rustc_force_inline]
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
|
2025-03-04 14:17:06 +01:00
|
|
|
error[E0539]: malformed `rustc_force_inline` attribute input
|
|
|
|
|
--> $DIR/invalid.rs:25:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline = 2]
|
2025-03-08 18:58:05 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^-^
|
|
|
|
|
| |
|
|
|
|
|
| expected a string literal here
|
2025-03-04 14:17:06 +01:00
|
|
|
|
|
2025-03-05 14:35:54 +01:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[rustc_force_inline = 2]
|
|
|
|
|
LL + #[rustc_force_inline = "reason"]
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[rustc_force_inline = 2]
|
2025-03-04 14:17:06 +01:00
|
|
|
LL + #[rustc_force_inline(reason)]
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2025-03-04 14:17:06 +01:00
|
|
|
LL - #[rustc_force_inline = 2]
|
|
|
|
|
LL + #[rustc_force_inline]
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on extern crates
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:30:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on use statements
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:34:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on statics
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:38:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on constants
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:42:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on modules
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:46:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on foreign modules
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:50:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
|
|
|
|
|
|
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on foreign statics
|
|
|
|
|
--> $DIR/invalid.rs:53:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
|
|
|
|
|
|
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on foreign types
|
|
|
|
|
--> $DIR/invalid.rs:57:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
|
|
|
|
|
|
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on foreign functions
|
|
|
|
|
--> $DIR/invalid.rs:61:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2025-09-25 16:11:34 +01:00
|
|
|
= help: `#[rustc_force_inline]` can be applied to functions and inherent methods
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on type aliases
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:66:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on enums
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:70:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
|
|
|
|
|
|
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on function params
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:72:10
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | enum Bar<#[rustc_force_inline] T> {
|
2025-08-09 20:41:01 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on enum variants
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:74:5
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on structs
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:79:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
|
|
|
|
|
|
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on struct fields
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:82:5
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on unions
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:87:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on traits
|
2025-03-04 14:17:06 +01:00
|
|
|
--> $DIR/invalid.rs:94:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on associated types
|
|
|
|
|
--> $DIR/invalid.rs:97:5
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on associated consts
|
|
|
|
|
--> $DIR/invalid.rs:100:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
|
|
|
|
|
|
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on provided trait methods
|
|
|
|
|
--> $DIR/invalid.rs:104:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2025-09-25 16:11:34 +01:00
|
|
|
= help: `#[rustc_force_inline]` can be applied to functions and inherent methods
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on trait aliases
|
|
|
|
|
--> $DIR/invalid.rs:109:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on inherent impl blocks
|
|
|
|
|
--> $DIR/invalid.rs:113:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on trait impl blocks
|
2025-09-25 16:11:34 +01:00
|
|
|
--> $DIR/invalid.rs:120:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on macro defs
|
2025-09-25 16:11:34 +01:00
|
|
|
--> $DIR/invalid.rs:127:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on function params
|
2025-09-25 16:11:34 +01:00
|
|
|
--> $DIR/invalid.rs:131:11
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
LL | fn barqux(#[rustc_force_inline] _x: u32) {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
|
|
|
|
|
|
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on closures
|
2025-09-25 16:11:34 +01:00
|
|
|
--> $DIR/invalid.rs:148:14
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | let _x = #[rustc_force_inline] || { };
|
2025-08-09 20:41:01 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2025-09-25 16:11:34 +01:00
|
|
|
= help: `#[rustc_force_inline]` can be applied to functions and inherent methods
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on expressions
|
2025-09-25 16:11:34 +01:00
|
|
|
--> $DIR/invalid.rs:150:14
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | let _y = #[rustc_force_inline] 3 + 4;
|
2025-08-09 20:41:01 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on statements
|
2025-09-25 16:11:34 +01:00
|
|
|
--> $DIR/invalid.rs:152:5
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[rustc_force_inline]` attribute cannot be used on match arms
|
2025-09-25 16:11:34 +01:00
|
|
|
--> $DIR/invalid.rs:157:9
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
= help: `#[rustc_force_inline]` can only be applied to functions
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: attribute cannot be applied to a `async`, `gen` or `async gen` function
|
2025-09-25 16:11:34 +01:00
|
|
|
--> $DIR/invalid.rs:135:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2024-09-23 18:46:23 +01:00
|
|
|
LL |
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | async fn async_foo() {}
|
|
|
|
|
| -------------------- `async`, `gen` or `async gen` function
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: attribute cannot be applied to a `async`, `gen` or `async gen` function
|
2025-09-25 16:11:34 +01:00
|
|
|
--> $DIR/invalid.rs:139:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2024-09-23 18:46:23 +01:00
|
|
|
LL |
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | gen fn gen_foo() {}
|
|
|
|
|
| ---------------- `async`, `gen` or `async gen` function
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: attribute cannot be applied to a `async`, `gen` or `async gen` function
|
2025-09-25 16:11:34 +01:00
|
|
|
--> $DIR/invalid.rs:143:1
|
2024-09-23 18:46:23 +01:00
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | #[rustc_force_inline]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2024-09-23 18:46:23 +01:00
|
|
|
LL |
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | async gen fn async_gen_foo() {}
|
|
|
|
|
| ---------------------------- `async`, `gen` or `async gen` function
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-09-25 16:11:34 +01:00
|
|
|
error: aborting due to 36 previous errors
|
2024-09-23 18:46:23 +01:00
|
|
|
|
2025-03-08 18:58:05 +01:00
|
|
|
Some errors have detailed explanations: E0539, E0805.
|
|
|
|
|
For more information about an error, try `rustc --explain E0539`.
|