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
7 //~| NOTE `Bar` defines an item `bar`, perhaps you need to implement it
14 let arc = std::sync::Arc::new(oops);
15 //~^ ERROR cannot find value `oops` in this scope
18 //~^ ERROR no method named `bar`
19 //~| NOTE method not found
20 //~| HELP items from traits can only be used if the trait is implemented and in scope
22 let arc2 = std::sync::Arc::new(|| Foo);
24 //~^ ERROR no method named `bar`
25 //~| NOTE method not found
26 //~| HELP items from traits can only be used if the trait is implemented and in scope
27 //~| HELP use parentheses to call this closure