#include <memory>
struct Bar {
std::unique_ptr<char> p;
};
void fooA(const Bar& bar) {
//Bar bar_copy(bar); // error: use of deleted function 'Bar::Bar(const Bar&)'
}
void fooB(Bar bar) {
}
int main() {
fooB(Bar());
}
I2luY2x1ZGUgPG1lbW9yeT4KCnN0cnVjdCBCYXIgewoJc3RkOjp1bmlxdWVfcHRyPGNoYXI+IHA7Cn07Cgp2b2lkIGZvb0EoY29uc3QgQmFyJiBiYXIpIHsKICAvL0JhciBiYXJfY29weShiYXIpOyAgLy8gIGVycm9yOiB1c2Ugb2YgZGVsZXRlZCBmdW5jdGlvbiAnQmFyOjpCYXIoY29uc3QgQmFyJiknCn0KCnZvaWQgZm9vQihCYXIgYmFyKSB7Cn0KCmludCBtYWluKCkgewoJZm9vQihCYXIoKSk7Cn0=