]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/extern-method.rs
Suggest defining type parameter when appropriate
[rust.git] / src / test / rustdoc / extern-method.rs
1 // aux-build:rustdoc-extern-method.rs
2 // ignore-cross-compile
3
4 #![feature(unboxed_closures)]
5
6 extern crate rustdoc_extern_method as foo;
7
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_'
11 pub use foo::Foo;
12
13 // @has extern_method/trait.Bar.html //pre "pub trait Bar"
14 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, _: ()) { }
19 }