mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
13 lines
245 B
Rust
13 lines
245 B
Rust
//! Check that compile errors are formatted in the "short" style
|
|
//! when `--error-format=short` is used.
|
|
|
|
//@ compile-flags: --error-format=short
|
|
|
|
fn foo(_: u32) {}
|
|
|
|
fn main() {
|
|
foo("Bonjour".to_owned());
|
|
let x = 0u32;
|
|
x.salut();
|
|
}
|