diff options
Diffstat (limited to 'src/test/ui/minus-string.rs')
-rw-r--r-- | src/test/ui/minus-string.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/minus-string.rs b/src/test/ui/minus-string.rs new file mode 100644 index 000000000..018f0ef9a --- /dev/null +++ b/src/test/ui/minus-string.rs @@ -0,0 +1,3 @@ +// error-pattern:cannot apply unary operator `-` to type `String` + +fn main() { -"foo".to_string(); } |