struct Yoba{}; int main() { auto f = int(-2) / unsigned(2); Yoba a = f; }
Standard input is empty
prog.cpp:5:7: error: no viable conversion from 'unsigned int' to 'Yoba'
Yoba a = f;
^ ~
prog.cpp:1:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'unsigned int' to 'const Yoba &' for 1st argument
struct Yoba{};
^
prog.cpp:1:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'unsigned int' to 'Yoba &&' for 1st argument
struct Yoba{};
^
1 error generated.
Standard output is empty