rust/src/test/ui/test-on-macro.rs

14 lines
170 B
Rust
Raw Normal View History

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