]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-10401.rs
Rollup merge of #107194 - xfix:remove-slice-internals-dependency-in-rustc-ast, r...
[rust.git] / tests / ui / typeck / issue-10401.rs
1 fn main() {
2     let mut a = "a";
3     a += { "b" };
4     //~^ ERROR: binary assignment operation `+=` cannot be applied
5 }