/src/test/compile-fail/binop-bitxor-str.rs

http://github.com/jruderman/rust · Rust · 3 lines · 1 code · 1 blank · 1 comment · 0 complexity · 0df7da1cfb3966cb3adab7fffd62dce9 MD5 · raw file

  1. // error-pattern:^ cannot be applied to type `~str`
  2. fn main() { let x = ~"a" ^ ~"b"; }