Skip to content

Commit 579b5f1

Browse files
committed
short-error-format
1 parent e383b28 commit 579b5f1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/ui/diagnostic-flags/error-format-short.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Check that compile errors are formatted in the "short" style
2+
//! when `--error-format=short` is used.
3+
14
//@ compile-flags: --error-format=short
25

36
fn foo(_: u32) {}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
$DIR/short-error-format.rs:6:9: error[E0308]: mismatched types: expected `u32`, found `String`
2-
$DIR/short-error-format.rs:8:7: error[E0599]: no method named `salut` found for type `u32` in the current scope: method not found in `u32`
1+
$DIR/error-format-short.rs:8:9: error[E0308]: mismatched types: expected `u32`, found `String`
2+
$DIR/error-format-short.rs:10:7: error[E0599]: no method named `salut` found for type `u32` in the current scope: method not found in `u32`
33
error: aborting due to 2 previous errors

0 commit comments

Comments
 (0)