summaryrefslogtreecommitdiff
path: root/tests/ui/macros/invalid-fragment-specifier.stderr
blob: a51ea619b366298948e24783dd94c5d41f949e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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`, along with `expr_2021` and `pat_param` for edition compatibility

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`, along with `expr_2021` and `pat_param` for edition compatibility

error: aborting due to 2 previous errors