blob: 38716d33bcd9ae78818391a4396682c9a8e54f73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#[rustc_builtin_macro]
macro_rules! include_bytes {
() => {{}};
}
fn main () {
let file = "include.txt";
include_bytes! (file); // { dg-error "argument must be a string literal" "" }
include_bytes! (); // { dg-error "macro takes 1 argument" "" }
include_bytes! ("foo.txt", "bar.txt"); // { dg-error "macro takes 1 argument" "" }
include_bytes! ("builtin_macro_include_bytes.rs"); // ok
include_bytes! ("builtin_macro_include_bytes.rs",); // trailing comma ok
}
|