summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-40136.rs
blob: 29d3fc2d56026eba0f9c67647f5d93db31ba8b31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass
#![allow(dead_code)]

macro_rules! m { () => { 0 } }

trait T {
   const C: i32 = m!();
}

struct S;
impl S {
    const C: i32 = m!();
}

fn main() {}