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

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

15 lines
247 B
Rust
Raw Normal View History

2020-08-23 05:42:19 -05:00
// run-pass
// aux-build:macro-only-syntax.rs
extern crate macro_only_syntax;
#[macro_only_syntax::expect_unsafe_foreign_mod]
unsafe extern {
type T;
}
#[macro_only_syntax::expect_unsafe_extern_cpp_mod]
unsafe extern "C++" {}
fn main() {}