]> git.proxmox.com Git - rustc.git/blob - tests/ui/feature-gates/feature-gate-concat_idents.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / feature-gates / feature-gate-concat_idents.rs
1 const XY_1: i32 = 10;
2
3 fn main() {
4 const XY_2: i32 = 20;
5 let a = concat_idents!(X, Y_1); //~ ERROR `concat_idents` is not stable
6 let b = concat_idents!(X, Y_2); //~ ERROR `concat_idents` is not stable
7 assert_eq!(a, 10);
8 assert_eq!(b, 20);
9 }