mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
10 lines
261 B
Rust
10 lines
261 B
Rust
|
const XY_1: i32 = 10;
|
||
|
|
||
|
fn main() {
|
||
|
const XY_2: i32 = 20;
|
||
|
let a = concat_idents!(X, Y_1); //~ ERROR `concat_idents` is not stable
|
||
|
let b = concat_idents!(X, Y_2); //~ ERROR `concat_idents` is not stable
|
||
|
assert_eq!(a, 10);
|
||
|
assert_eq!(b, 20);
|
||
|
}
|