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

@ -10,7 +10,7 @@
enum Foo {
A = "" + 1
//~^ ERROR binary operation `+` cannot be applied to type `&'static str`
//~^ ERROR binary operation `+` cannot be applied to type `&str`
}
enum Bar {