| 1 |
error: expected identifier, found `0f` |
| 2 |
--> tests/ui/invalid-ident.rs:3:1 |
| 3 |
| |
| 4 |
3 | / paste! { |
| 5 |
4 | | fn [<0 f>]() {} |
| 6 |
5 | | } |
| 7 |
| |_^ expected identifier |
| 8 |
| |
| 9 |
help: identifiers cannot start with a number |
| 10 |
--> tests/ui/invalid-ident.rs:3:1 |
| 11 |
| |
| 12 |
3 | paste! { |
| 13 |
| ^ |
| 14 |
= note: this error originates in the macro `paste` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 15 |
|
| 16 |
error: `"f\""` is not a valid identifier |
| 17 |
--> tests/ui/invalid-ident.rs:8:8 |
| 18 |
| |
| 19 |
8 | fn [<f '"'>]() {} |
| 20 |
| ^^^^^^^^^ |
| 21 |
|
| 22 |
error: `"f'"` is not a valid identifier |
| 23 |
--> tests/ui/invalid-ident.rs:12:8 |
| 24 |
| |
| 25 |
12 | fn [<f "'">]() {} |
| 26 |
| ^^^^^^^^^ |