blob: fcc806a472ba0aab69ab72c250f46cadc08bdbc6 [file] [log] [blame]
// PR c++/85209
// { dg-do compile { target c++11 } }
// { dg-options "" }
template <int>
void
foo ()
{
auto [a] = []{}; // { dg-error "cannot decompose lambda closure type" }
} // { dg-warning "structured bindings only available with" "" { target c++14_down } .-1 }
void
bar ()
{
foo<0> ();
}