rust/src/test/ui/test-on-macro.rs
2019-07-03 06:30:28 +09:00

14 lines
170 B
Rust

// build-pass (FIXME(62277): could be check-pass?)
// compile-flags:--test
#![deny(warnings)]
macro_rules! foo {
() => (fn foo(){})
}
#[test]
foo!();
fn main(){}