summaryrefslogtreecommitdiffstats
path: root/tests/ui/command-line-diagnostics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/command-line-diagnostics.rs')
-rw-r--r--tests/ui/command-line-diagnostics.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/command-line-diagnostics.rs b/tests/ui/command-line-diagnostics.rs
new file mode 100644
index 000000000..248fb83a3
--- /dev/null
+++ b/tests/ui/command-line-diagnostics.rs
@@ -0,0 +1,7 @@
+// This test checks the output format without the intermediate json representation
+// compile-flags: --error-format=human
+
+pub fn main() {
+ let x = 42;
+ x = 43;
+}