// PR c++/60190 // { dg-do compile { target c++14 } } // { dg-options "" } auto f = []() -> int() {}; // { dg-error "returning a function|expected" }