diff options
Diffstat (limited to 'src/test/ui/coherence/auxiliary/coherence_inherent_cc_lib.rs')
-rw-r--r-- | src/test/ui/coherence/auxiliary/coherence_inherent_cc_lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/coherence/auxiliary/coherence_inherent_cc_lib.rs b/src/test/ui/coherence/auxiliary/coherence_inherent_cc_lib.rs new file mode 100644 index 000000000..08d22fbed --- /dev/null +++ b/src/test/ui/coherence/auxiliary/coherence_inherent_cc_lib.rs @@ -0,0 +1,11 @@ +// See coherence_inherent_cc.rs + +pub trait TheTrait { + fn the_fn(&self); +} + +pub struct TheStruct; + +impl TheTrait for TheStruct { + fn the_fn(&self) {} +} |