rust/tests/fail/rustc-error.rs
2022-07-11 11:48:56 +00:00

5 lines
163 B
Rust

// Make sure we exit with non-0 status code when the program fails to build.
fn main() {
println("Hello, world!"); //~ ERROR: expected function, found macro
}