summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-external-macro-const-err.rs
blob: 440c42e32ef3958d134a4dd28a78a1d267762f1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// edition:2018
// aux-build:external_macro.rs

// Ensure that CONST_ERR lint errors
// are not silenced in external macros.
// https://github.com/rust-lang/rust/issues/65300

extern crate external_macro;
use external_macro::static_assert;

fn main() {
    static_assert!(2 + 2 == 5); //~ ERROR
    //~| WARN this was previously accepted by the compiler but is being phased out
}