rust/tests/ui/proc-macro/unsafe-mod.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
214 B
Rust
Raw Permalink Normal View History

2020-08-23 10:42:19 +00:00
//@ run-pass
//@ proc-macro: macro-only-syntax.rs
2020-08-23 10:42:19 +00:00
#![feature(proc_macro_hygiene)]
extern crate macro_only_syntax;
#[macro_only_syntax::expect_unsafe_mod]
unsafe mod m {
pub unsafe mod inner;
}
fn main() {}