summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-10401.rs
blob: d77ff381e1a09afbb66e56bf8942487403dcff58 (plain)
1
2
3
4
5
fn main() {
    let mut a = "a";
    a += { "b" };
    //~^ ERROR: binary assignment operation `+=` cannot be applied
}