@@ -55,12 +55,6 @@ error: malformed `patchable_function_entry` attribute input
5555LL | #[patchable_function_entry]
5656 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[patchable_function_entry(prefix_nops = m, entry_nops = n)]`
5757
58- error: malformed `coroutine` attribute input
59- --> $DIR/malformed-attrs.rs:112:5
60- |
61- LL | #[coroutine = 63] || {}
62- | ^^^^^^^^^^^^^^^^^ help: must be of the form: `#[coroutine]`
63-
6458error: malformed `must_not_suspend` attribute input
6559 --> $DIR/malformed-attrs.rs:133:1
6660 |
@@ -445,6 +439,15 @@ LL | #[proc_macro = 18]
445439 | | didn't expect any arguments here
446440 | help: must be of the form: `#[proc_macro]`
447441
442+ error[E0565]: malformed `coroutine` attribute input
443+ --> $DIR/malformed-attrs.rs:112:5
444+ |
445+ LL | #[coroutine = 63] || {}
446+ | ^^^^^^^^^^^^----^
447+ | | |
448+ | | didn't expect any arguments here
449+ | help: must be of the form: `#[coroutine]`
450+
448451error[E0565]: malformed `proc_macro_attribute` attribute input
449452 --> $DIR/malformed-attrs.rs:117:1
450453 |
@@ -654,13 +657,19 @@ LL | #[ignore = 1]
654657error[E0308]: mismatched types
655658 --> $DIR/malformed-attrs.rs:112:23
656659 |
657- LL | fn test() {
658- | - help: a return type might be missing here: `-> _`
659660LL | #[coroutine = 63] || {}
660- | ^^^^^ expected `()`, found coroutine
661+ | ^^^^^ expected `()`, found closure
661662 |
662663 = note: expected unit type `()`
663- found coroutine `{coroutine@$DIR/malformed-attrs.rs:112:23: 112:25}`
664+ found closure `{closure@$DIR/malformed-attrs.rs:112:23: 112:25}`
665+ help: try adding a return type
666+ |
667+ LL | fn test() -> impl FnOnce() {
668+ | ++++++++++++++++
669+ help: use parentheses to call this closure
670+ |
671+ LL | #[coroutine = 63] (|| {})()
672+ | + +++
664673
665674error: aborting due to 75 previous errors; 3 warnings emitted
666675
0 commit comments