Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 412 Bytes
// run-pass
// pretty-expanded FIXME #23616
#![feature(box_syntax)]
struct Element;
macro_rules! foo {
($tag: expr, $string: expr) => {
if $tag == $string {
let element: Box<_> = box Element;
unsafe {
return std::mem::transmute::<_, usize>(element);
}
}
}
}
fn bar() -> usize {
foo!("a", "b");
0
}
fn main() {
bar();
}
You can’t perform that action at this time.