1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "callback.h"
6 
Foo(base::OnceClosure)7 void Foo(base::OnceClosure) {}
8 
Test()9 void Test() {
10   base::OnceClosure cb = base::Bind([] {});
11   Foo(base::Bind([] {}));
12 
13   using namespace base;
14 
15   OnceClosure cb2 = Bind([] {});
16   Foo(Bind([] {}));
17 
18   Closure cb3 = base::Bind([] {});
19 }
20