1 // Tests that methods that implement a trait cannot be invoked
2 // unless the trait is imported.
11 impl TheTrait for TheStruct {
17 // Trait is in scope here:
21 fn call_the_fn(s: &TheStruct) {
27 // Trait is not in scope here:
30 fn call_the_fn(s: &TheStruct) {