rust/tests/ui/macros/issue-39467.rs

12 lines
135 B
Rust
Raw Normal View History

//@ check-pass
#![allow(dead_code)]
macro_rules! expr { () => { () } }
enum A {}
impl A {
const A: () = expr!();
}
fn main() {}