]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
c34b1796 AL |
2 | // pretty-expanded FIXME #23616 |
3 | ||
1a4d82fc | 4 | struct Element; |
970d7e83 | 5 | |
1a4d82fc JJ |
6 | macro_rules! foo { |
7 | ($tag: expr, $string: expr) => { | |
8 | if $tag == $string { | |
f2b60f7d | 9 | let element: Box<_> = Box::new(Element); |
1a4d82fc | 10 | unsafe { |
c34b1796 | 11 | return std::mem::transmute::<_, usize>(element); |
1a4d82fc JJ |
12 | } |
13 | } | |
14 | } | |
15 | } | |
16 | ||
c34b1796 | 17 | fn bar() -> usize { |
1a4d82fc JJ |
18 | foo!("a", "b"); |
19 | 0 | |
223e47cc LB |
20 | } |
21 | ||
22 | fn main() { | |
1a4d82fc | 23 | bar(); |
223e47cc | 24 | } |