]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5718.rs
Auto merge of #96711 - emilio:inline-slice-clone, r=nikic
[rust.git] / src / test / ui / issues / issue-5718.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 struct Element;
5
6 macro_rules! foo {
7     ($tag: expr, $string: expr) => {
8         if $tag == $string {
9             let element: Box<_> = Box::new(Element);
10             unsafe {
11                 return std::mem::transmute::<_, usize>(element);
12             }
13         }
14     }
15 }
16
17 fn bar() -> usize {
18     foo!("a", "b");
19     0
20 }
21
22 fn main() {
23     bar();
24 }