]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-concat_idents.rs
Rollup merge of #94449 - GuillaumeGomez:explanation-e0726, r=Urgau
[rust.git] / src / test / 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 }