blob: 5f888dfc3b4a867c2a945da66e63532c67246f2b [file] [log] [blame]
// Reject &&.
// { dg-do compile { target c++20 } }
struct A
{
bool operator==(const A&) const && = default; // { dg-error "ref-qualifier" }
};
struct B
{
friend bool operator==(const B&&, const B&&) = default; // { dg-error "" }
};