Sign in
cobalt
/
cobalt
/
37ef7f8c0c60f95c9821b4d9f3273c9ef3666a79
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
CXX
/
expr
/
expr.prim
/
expr.prim.lambda
/
p2-template-parameter.cpp
blob: f120a63badcbec1a47909ef1ce4310933fbd774c [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -std=c++17 %s -verify
template
<auto>
struct
Nothing
{};
void
pr33696
()
{
Nothing
<[]()
{
return
0
;
}()>
nothing
;
// expected-error{{a lambda expression cannot appear in this context}}
}