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