librustc: Allow adding static fn's in multiple impl's.
Add test for #4228.