2024-02-22 06:10:29 -06:00
|
|
|
//@ aux-build:rustdoc-extern-method.rs
|
|
|
|
//@ ignore-cross-compile
|
2015-04-06 15:49:30 -05:00
|
|
|
|
2015-04-01 15:18:56 -05:00
|
|
|
#![feature(unboxed_closures)]
|
|
|
|
|
2015-04-06 15:49:30 -05:00
|
|
|
extern crate rustdoc_extern_method as foo;
|
2015-02-06 02:51:38 -06:00
|
|
|
|
2015-04-06 15:49:30 -05:00
|
|
|
// @has extern_method/trait.Foo.html //pre "pub trait Foo"
|
2021-07-25 16:41:57 -05:00
|
|
|
// @has - '//*[@id="tymethod.foo"]//h4[@class="code-header"]' 'extern "rust-call" fn foo'
|
|
|
|
// @has - '//*[@id="method.foo_"]//h4[@class="code-header"]' 'extern "rust-call" fn foo_'
|
2015-02-06 02:51:38 -06:00
|
|
|
pub use foo::Foo;
|
|
|
|
|
2015-04-06 15:49:30 -05:00
|
|
|
// @has extern_method/trait.Bar.html //pre "pub trait Bar"
|
2015-02-06 02:51:38 -06:00
|
|
|
pub trait Bar {
|
2021-07-25 16:41:57 -05:00
|
|
|
// @has - '//*[@id="tymethod.bar"]//h4[@class="code-header"]' 'extern "rust-call" fn bar'
|
2015-02-06 02:51:38 -06:00
|
|
|
extern "rust-call" fn bar(&self, _: ());
|
2021-07-25 16:41:57 -05:00
|
|
|
// @has - '//*[@id="method.bar_"]//h4[@class="code-header"]' 'extern "rust-call" fn bar_'
|
2015-02-06 02:51:38 -06:00
|
|
|
extern "rust-call" fn bar_(&self, _: ()) { }
|
|
|
|
}
|