rustc_typeck: use subtyping on the LHS of binops.

This commit is contained in:
Eduard-Mihai Burtescu 2017-10-21 19:41:27 +03:00
parent 6713736275
commit 1a7fb7dc78
8 changed files with 157 additions and 75 deletions

View file

@ -1,4 +1,4 @@
error[E0369]: binary operation `+` cannot be applied to type `&'static str`
error[E0369]: binary operation `+` cannot be applied to type `&str`
--> $DIR/issue-39018.rs:12:13
|
12 | let x = "Hello " + "World!";