mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
8 lines
231 B
Rust
8 lines
231 B
Rust
const XY_1: i32 = 10;
|
|
|
|
fn main() {
|
|
const XY_2: i32 = 20;
|
|
assert_eq!(10, concat_idents!(X, Y_1)); //~ ERROR `concat_idents` is not stable
|
|
assert_eq!(20, concat_idents!(X, Y_2)); //~ ERROR `concat_idents` is not stable
|
|
}
|