1 // revisions: imported unimported
2 //[imported] check-pass
6 //[unimported]~^^ HELP perhaps add a `use` for it
7 fn wait(&self) where Self: Sized;
10 impl Future for Box<dyn Future> {
18 fn bar(arg: Box<dyn private::Future>) {
19 // Importing the trait means that we don't autoderef `Box<dyn Future>`
21 //[unimported]~^ ERROR the `wait` method cannot be invoked on a trait object