rust/tests/ui/feature-gates/feature-gate-concat_idents3.rs

8 lines
231 B
Rust
Raw Normal View History

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
}