2017-11-28 05:05:53 -06:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
pub trait Foo<T> {
|
|
|
|
fn foo() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Bar;
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has foo/struct.Bar.html
|
|
|
|
//@ has - '//*[@class="sidebar-elems"]//section//a[@href="#impl-Foo%3Cunsafe+extern+%22C%22+fn()%3E-for-Bar"]' 'Foo<unsafe extern "C" fn()>'
|
2017-11-28 05:05:53 -06:00
|
|
|
impl Foo<unsafe extern "C" fn()> for Bar {}
|