]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-external-macro-const-err.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-external-macro-const-err.rs
1 // edition:2018
2 // aux-build:external_macro.rs
3
4 // Ensure that CONST_ERR lint errors
5 // are not silenced in external macros.
6 // https://github.com/rust-lang/rust/issues/65300
7
8 extern crate external_macro;
9 use external_macro::static_assert;
10
11 fn main() {
12     static_assert!(2 + 2 == 5); //~ ERROR
13 }