We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e74c18 commit 11f24a9Copy full SHA for 11f24a9
src/test/compile-fail/macro-expanded-include/foo/mod.rs
@@ -13,3 +13,7 @@
13
macro_rules! m {
14
() => { include!("file.txt"); }
15
}
16
+
17
+macro_rules! n {
18
+ () => { unsafe { asm!(include_str!("file.txt")); } }
19
+}
src/test/compile-fail/macro-expanded-include/test.rs
@@ -8,12 +8,14 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
-#![feature(rustc_attrs)]
+#![feature(asm, rustc_attrs)]
12
+#![allow(unused)]
#[macro_use]
mod foo;
m!();
+fn f() { n!(); }
20
#[rustc_error]
21
fn main() {} //~ ERROR compilation successful
0 commit comments