summary refs log tree commit diff
path: root/tests/ui/conditional-compilation/invalid-node-range-issue-129166.rs
blob: 794e6fad3fc22ade91aa776d41beaf09c4cb0782 (plain)
1
2
3
4
5
6
7
8
9
10
11
// This was triggering an assertion failure in `NodeRange::new`.

#![feature(cfg_eval)]
#![feature(stmt_expr_attributes)]

fn f() -> u32 {
    #[cfg_eval] #[cfg(not(FALSE))] 0
    //~^ ERROR removing an expression is not supported in this position
}

fn main() {}