Index: base/bind_unittest.nc |
diff --git a/base/bind_unittest.nc b/base/bind_unittest.nc |
index bdbcd2f22378587b5a404967893f152c43c9abda..e60de076b58c9686a679f02c6a43e0a67d87eaf6 100644 |
--- a/base/bind_unittest.nc |
+++ b/base/bind_unittest.nc |
@@ -201,6 +201,13 @@ void WontCompile() { |
Closure callback_mismatches_bind_type = Bind(&VoidPolymorphic1<int>); |
} |
+#elif defined(NCTEST_DISALLOW_CAPTURING_LAMBDA) // [r"fatal error: implicit instantiation of undefined template 'base::internal::FunctorTraits<\(lambda at ../../base/bind_unittest.nc:[0-9]+:[0-9]+\), void>'"] |
+ |
+void WontCompile() { |
+ int i = 0; |
+ Bind([i]() {}); |
+} |
+ |
#endif |
} // namespace base |