1 // P0428R2 2 // { dg-do compile } 3 4 int j = []<class T>(T t, int i) { return i; }(3, 4); 5 // { dg-error "lambda templates are only available with" "" { target c++17_down } .-1 } 6 // { dg-error "lambda expressions only available with" "" { target c++98_only } .-2 } 7 // { dg-error "invalid use of 'auto'" "" { target c++98_only } .-3 } 8