blob: 5a73064c787763f4e5e5270b8071763290827aa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
error: `must_not_suspend` attribute should be applied to a struct, enum, or trait
--> $DIR/return.rs:5:1
|
LL | #[must_not_suspend]
| ^^^^^^^^^^^^^^^^^^^
LL | / fn foo() -> i32 {
LL | | 0
LL | | }
| |_- is not a struct, enum, or trait
error: aborting due to 1 previous error
|