summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binop/binop-bitxor-str.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/binop/binop-bitxor-str.rs')
-rw-r--r--src/test/ui/binop/binop-bitxor-str.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/binop/binop-bitxor-str.rs b/src/test/ui/binop/binop-bitxor-str.rs
new file mode 100644
index 000000000..3085cce3f
--- /dev/null
+++ b/src/test/ui/binop/binop-bitxor-str.rs
@@ -0,0 +1,3 @@
+// error-pattern:no implementation for `String ^ String`
+
+fn main() { let x = "a".to_string() ^ "b".to_string(); }