]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-5718.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-5718.rs
CommitLineData
b7449926 1// run-pass
c34b1796
AL
2// pretty-expanded FIXME #23616
3
1a4d82fc 4struct Element;
970d7e83 5
1a4d82fc
JJ
6macro_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 17fn bar() -> usize {
1a4d82fc
JJ
18 foo!("a", "b");
19 0
223e47cc
LB
20}
21
22fn main() {
1a4d82fc 23 bar();
223e47cc 24}