Debian Codegraph @

clang/test/CXX/expr/expr.prim/expr.prim.lambda/p2-template-parameter.cpp

raw
1 // RUN: %clang_cc1 -std=c++17 %s -verify
2
3 template<auto> struct Nothing {};
4
5 void pr33696() {
6 Nothing<[]() { return 0; }()> nothing; // expected-error{{a lambda expression cannot appear in this context}}
7 }