2015-04-06 20:49:30 +00:00
|
|
|
//@ aux-build:rustdoc-extern-method.rs
|
2015-04-22 22:22:36 +00:00
|
|
|
//@ ignore-cross-compile
|
2015-04-06 20:49:30 +00:00
|
|
|
|
2015-04-01 20:18:56 +00:00
|
|
|
#![feature(unboxed_closures)]
|
|
|
|
|
2015-04-06 20:49:30 +00:00
|
|
|
extern crate rustdoc_extern_method as foo;
|
2015-02-06 08:51:38 +00:00
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has extern_method/trait.Foo.html //pre "pub trait Foo"
|
|
|
|
//@ 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 08:51:38 +00:00
|
|
|
pub use foo::Foo;
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has extern_method/trait.Bar.html //pre "pub trait Bar"
|
2015-02-06 08:51:38 +00:00
|
|
|
pub trait Bar {
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has - '//*[@id="tymethod.bar"]//h4[@class="code-header"]' 'extern "rust-call" fn bar'
|
2015-02-06 08:51:38 +00:00
|
|
|
extern "rust-call" fn bar(&self, _: ());
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has - '//*[@id="method.bar_"]//h4[@class="code-header"]' 'extern "rust-call" fn bar_'
|
2015-02-06 08:51:38 +00:00
|
|
|
extern "rust-call" fn bar_(&self, _: ()) { }
|
|
|
|
}
|