blob: fdada85eb4d1caf761044bc01ee7872a4cc07034 (
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 previous error
|