Add test for issue #6698
resolve: don't resolve paths that point to non-static methods

Fixes #6698
auto merge of #6910 : Blei/rust/fix-6698, r=pcwalton

Fixes #6698