rust/tests/ui/diagnostic-flags/error-format-short.rs
2025-07-05 01:54:04 +05:00

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();
}