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