mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
e3859d206c
Also replaces an incomplete test
19 lines
634 B
Plaintext
19 lines
634 B
Plaintext
error: invalid fragment specifier `id`
|
|
--> $DIR/invalid-fragment-specifier.rs:2:6
|
|
|
|
|
LL | ($wrong:id) => {};
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, `item` and `vis`
|
|
|
|
error: invalid fragment specifier `r#if`
|
|
--> $DIR/invalid-fragment-specifier.rs:7:6
|
|
|
|
|
LL | ($wrong:r#if) => {};
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, `item` and `vis`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|