mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
14 lines
355 B
Rust
14 lines
355 B
Rust
//@ 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 index out of bounds: the length is 1 but the index is 1
|
|
}
|