Skip to content

Commit

Permalink
Add 80447
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Dec 29, 2020
1 parent 3175418 commit 973f222
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ices/80447.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

rustc --crate-type=proc-macro - << 'EOF'
extern crate proc_macro;
use proc_macro::TokenStream;
#[proc_macro_attribute]
pub fn mac(_attrs: TokenStream, input: TokenStream) -> TokenStream {
input
}
EOF

rustc --extern mac=$(ls librust_out.*) - << 'EOF'
pub trait Crash {
#[mac::mac]
fn one(s: () {
}
fn two();
}
fn main () {}
EOF

0 comments on commit 973f222

Please sign in to comment.