rust/tests/ui/feature-gates/feature-gate-concat_idents3.rs
2023-01-11 09:32:08 +00:00

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
}