1error: invalid fragment specifier `foo` 2 --> $DIR/macro-invalid-fragment-spec.rs:2:6 3 | 4LL | ($x:foo) => () 5 | ^^^^^^ 6 | 7 = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, `item` and `vis` 8 9error: aborting due to previous error 10 11