summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-concat_idents3.rs
blob: 81710fd9fb041cea9006d91dcf3000095a38279d (plain)
1
2
3
4
5
6
7
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
}