2 // aux-build:external_macro.rs
4 // Ensure that CONST_ERR lint errors
5 // are not silenced in external macros.
6 // https://github.com/rust-lang/rust/issues/65300
8 extern crate external_macro;
9 use external_macro::static_assert;
12 static_assert!(2 + 2 == 5); //~ ERROR
13 //~| WARN this was previously accepted by the compiler but is being phased out