]> git.proxmox.com Git - rustc.git/blame - src/test/ui/assignment-operator-unimplemented.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / assignment-operator-unimplemented.rs
CommitLineData
1a4d82fc 1struct Foo;
223e47cc
LB
2
3fn main() {
1a4d82fc
JJ
4 let mut a = Foo;
5 let ref b = Foo;
b039eaaf 6 a += *b; //~ Error: binary assignment operation `+=` cannot be applied to type `Foo`
223e47cc 7}