Closed
Description
test.rs:
include!("test.inc")
fn main() {
println!("{}", foo());
}
test.inc:
fn foo() -> int {
return 42;
}
Compiler error:
test.inc:1:1: 1:3 error: expected identifier, found keyword `fn`
test.inc:1 fn foo() -> int {
^~
test.rs:1:1: 1:8 error: non-item macro in item position: include
test.rs:1 include!("test.inc")
^~~~~~~
error: aborting due to 2 previous errors