struct X { X(X and) = default; X() = default; }; int main() { X a, b; b = a; }
Standard input is empty
prog.cpp: In function 'int main()':
prog.cpp:6:4: error: use of deleted function 'X& X::operator=(const X&)'
b = a;
^
prog.cpp:1:8: note: 'X& X::operator=(const X&)' is implicitly declared as deleted because 'X' declares a move constructor or move assignment operator
struct X { X(X and) = default; X() = default; };
^
Standard output is empty