summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-external-macro-const-err.rs
blob: 5bd84330bb79f64328f83492779d8984be354005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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 constant
}