rust/tests/ui/consts/const-external-macro-const-err.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
306 B
Rust
Raw Normal View History

// 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() {
2022-09-21 06:05:20 -05:00
static_assert!(2 + 2 == 5); //~ ERROR constant
}