#![crate_name = "foo"] pub trait Foo { fn foo() {} } pub struct Bar; //@ has foo/struct.Bar.html //@ has - '//*[@class="sidebar-elems"]//section//a[@href="#impl-Foo%3Cunsafe+extern+%22C%22+fn()%3E-for-Bar"]' 'Foo' impl Foo for Bar {}