2016-04-22 05:48:46 -05:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
// @has foo/struct.Foo.html
|
|
|
|
pub struct Foo;
|
|
|
|
|
|
|
|
impl Foo {
|
2021-07-25 16:41:57 -05:00
|
|
|
// @has - '//h4[@class="code-header"]' 'fn rust0()'
|
2016-04-22 05:48:46 -05:00
|
|
|
pub fn rust0() {}
|
2021-07-25 16:41:57 -05:00
|
|
|
// @has - '//h4[@class="code-header"]' 'fn rust1()'
|
2016-04-22 05:48:46 -05:00
|
|
|
pub extern "Rust" fn rust1() {}
|
2021-07-25 16:41:57 -05:00
|
|
|
// @has - '//h4[@class="code-header"]' 'extern "C" fn c0()'
|
2016-04-22 05:48:46 -05:00
|
|
|
pub extern fn c0() {}
|
2021-07-25 16:41:57 -05:00
|
|
|
// @has - '//h4[@class="code-header"]' 'extern "C" fn c1()'
|
2016-04-22 05:48:46 -05:00
|
|
|
pub extern "C" fn c1() {}
|
2021-07-25 16:41:57 -05:00
|
|
|
// @has - '//h4[@class="code-header"]' 'extern "system" fn system0()'
|
2016-04-22 05:48:46 -05:00
|
|
|
pub extern "system" fn system0() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has foo/trait.Bar.html
|
|
|
|
pub trait Bar {}
|
|
|
|
|
2022-09-25 15:52:26 -05:00
|
|
|
// @has - '//h3[@class="code-header"]' 'impl Bar for fn()'
|
2016-04-22 05:48:46 -05:00
|
|
|
impl Bar for fn() {}
|
2022-09-25 15:52:26 -05:00
|
|
|
// @has - '//h3[@class="code-header"]' 'impl Bar for extern "C" fn()'
|
2016-04-22 05:48:46 -05:00
|
|
|
impl Bar for extern fn() {}
|
2022-09-25 15:52:26 -05:00
|
|
|
// @has - '//h3[@class="code-header"]' 'impl Bar for extern "system" fn()'
|
2016-04-22 05:48:46 -05:00
|
|
|
impl Bar for extern "system" fn() {}
|