Closed nilehmann closed 2 years ago
It can still be used in Rust 2021 edition by inserting whitespace as the compiler error message says:
error: prefix `Foo` is unknown
--> .../lib.rs:3:16
|
3 | pub fn foo#N() -> &'static str {
| ^^^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
3 - pub fn foo#N() -> &'static str {
3 + pub fn foo #N() -> &'static str {
|
I ran into problems when trying to use
seq!
in the 2021 edition becauseident#N
gets tokenized as a prefixed identifier.