1 // This test case checks the behavior of typeck::check::method::suggest::is_fn on Ty::Error.
6 //~^ NOTE `Bar` defines an item `bar`, perhaps you need to implement it
13 let arc = std::sync::Arc::new(oops);
14 //~^ ERROR cannot find value `oops` in this scope
18 let arc2 = std::sync::Arc::new(|| Foo);
20 //~^ ERROR no method named `bar`
21 //~| NOTE method not found
22 //~| HELP items from traits can only be used if the trait is implemented and in scope
23 //~| HELP use parentheses to call this closure