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
|
|
@ -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!";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue