about summary refs log tree commit diff
path: root/tests/ui/short-error-format.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/short-error-format.rs')
-rw-r--r--tests/ui/short-error-format.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/short-error-format.rs b/tests/ui/short-error-format.rs
new file mode 100644
index 00000000000..acba4674a4d
--- /dev/null
+++ b/tests/ui/short-error-format.rs
@@ -0,0 +1,9 @@
+// compile-flags: --error-format=short
+
+fn foo(_: u32) {}
+
+fn main() {
+    foo("Bonjour".to_owned());
+    let x = 0u32;
+    x.salut();
+}