1 // aux-build:coherence_inherent_cc_lib.rs
3 // Tests that methods that implement a trait cannot be invoked
4 // unless the trait is imported.
6 extern crate coherence_inherent_cc_lib
;
9 // Trait is in scope here:
10 use coherence_inherent_cc_lib
::TheStruct
;
11 use coherence_inherent_cc_lib
::TheTrait
;
13 fn call_the_fn(s
: &TheStruct
) {
19 // Trait is not in scope here:
20 use coherence_inherent_cc_lib
::TheStruct
;
22 fn call_the_fn(s
: &TheStruct
) {