| Index: base/bind_unittest.nc
|
| diff --git a/base/bind_unittest.nc b/base/bind_unittest.nc
|
| index bba2e025f2c47ab604cb236cadf3361dbc814213..46468eca3b99f32bf26422961cd04c0d380f22bb 100644
|
| --- a/base/bind_unittest.nc
|
| +++ b/base/bind_unittest.nc
|
| @@ -224,6 +224,13 @@ void WontCompile() {
|
| Closure cb2 = Bind(cb);
|
| }
|
|
|
| +#elif defined(NCTEST_DISALLOW_ONCECALLBACK_RUN_ON_LVALUE) // [r"static_assert failed \"OnceCallback::Run\(\) may only be invoked on an rvalue, i\.e\. std::move\(callback\)\.Run\(\)\.\""]
|
| +
|
| +void WontCompile() {
|
| + OnceClosure cb = Bind([] {});
|
| + cb.Run();
|
| +}
|
| +
|
| #endif
|
|
|
| } // namespace base
|
|
|