about summary refs log tree commit diff
path: root/tests/ui/diagnostic-flags/error-format-short.rs
blob: 4c793cd1b189b8f82696106ee1647bb155bc6e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//! 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();
}