rustc_typeck: use subtyping on the LHS of binops.
This commit is contained in:
parent
6713736275
commit
1a7fb7dc78
8 changed files with 157 additions and 75 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue