mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00

These tests were updated in the previous commit; while they are being cleaned up, move them to a non-issue directory.
13 lines
335 B
Rust
13 lines
335 B
Rust
// Issue 50403
|
|
// Ensure that `concat` can't create empty identifiers
|
|
// FIXME(macro_metavar_expr_concat): this error message could be improved
|
|
|
|
macro_rules! empty {
|
|
() => { ${concat()} } //~ ERROR expected identifier or string literal
|
|
//~^ERROR expected expression
|
|
}
|
|
|
|
fn main() {
|
|
let x = empty!();
|
|
}
|