summaryrefslogtreecommitdiffstats
path: root/src/test/ui/minus-string.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/minus-string.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/minus-string.stderr b/src/test/ui/minus-string.stderr
new file mode 100644
index 000000000..b429ad304
--- /dev/null
+++ b/src/test/ui/minus-string.stderr
@@ -0,0 +1,9 @@
+error[E0600]: cannot apply unary operator `-` to type `String`
+ --> $DIR/minus-string.rs:3:13
+ |
+LL | fn main() { -"foo".to_string(); }
+ | ^^^^^^^^^^^^^^^^^^ cannot apply unary operator `-`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0600`.