]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-concat_idents.rs
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / feature-gates / feature-gate-concat_idents.rs
1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 const XY_1: i32 = 10;
12
13 fn main() {
14     const XY_2: i32 = 20;
15     let a = concat_idents!(X, Y_1); //~ ERROR `concat_idents` is not stable
16     let b = concat_idents!(X, Y_2); //~ ERROR `concat_idents` is not stable
17     assert_eq!(a, 10);
18     assert_eq!(b, 20);
19 }