1 // aux-build:rustdoc-extern-method.rs
2 // ignore-cross-compile
4 #![feature(unboxed_closures)]
6 extern crate rustdoc_extern_method as foo;
8 // @has extern_method/trait.Foo.html //pre "pub trait Foo"
9 // @has - '//*[@id="tymethod.foo"]//code' 'extern "rust-call" fn foo'
10 // @has - '//*[@id="method.foo_"]//code' 'extern "rust-call" fn foo_'
13 // @has extern_method/trait.Bar.html //pre "pub trait Bar"
15 // @has - '//*[@id="tymethod.bar"]//code' 'extern "rust-call" fn bar'
16 extern "rust-call" fn bar(&self, _: ());
17 // @has - '//*[@id="method.bar_"]//code' 'extern "rust-call" fn bar_'
18 extern "rust-call" fn bar_(&self, _: ()) { }