Debian Codegraph @

gcc/testsuite/rust/execute/torture/macros23.rs

raw
1 #[lang = "sized"]
2 pub trait Sized {}
3
4 trait Valuable {
5 const VALUE: i32;
6 }
7
8 struct Something;
9
10 macro_rules! implement {
11 () => {
12 const VALUE: i32 = 18;
13 };
14 }
15
16 impl Valuable for Something {
17 implement!();
18 }
19
20 fn main() -> i32 {
21 Something::VALUE - 18
22 }