mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
71a147df1f
rustdoc: fix item-spacer rustdoc: use proper comment style rustdoc: change formatting where clauses for traits rustdoc: remove semicolon from provided methods update provided methods formatting
22 lines
965 B
Rust
22 lines
965 B
Rust
// aux-build:inline-default-methods.rs
|
|
// ignore-cross-compile
|
|
|
|
extern crate inline_default_methods;
|
|
|
|
// @has inline_default_methods/trait.Foo.html
|
|
// @has - '//pre[@class="rust item-decl"]' '// Required method fn bar(&self);'
|
|
// @has - '//pre[@class="rust item-decl"]' '// Provided method fn foo(&mut self)'
|
|
pub use inline_default_methods::Foo;
|
|
|
|
// @has inline_default_methods/trait.Bar.html
|
|
// @has - '//pre[@class="rust item-decl"]' '// Required method fn bar(&self);'
|
|
// @has - '//pre[@class="rust item-decl"]' '// Provided methods fn foo1(&mut self)'
|
|
// @has - '//pre[@class="rust item-decl"]' 'fn foo2(&mut self)'
|
|
pub use inline_default_methods::Bar;
|
|
|
|
// @has inline_default_methods/trait.Baz.html
|
|
// @has - '//pre[@class="rust item-decl"]' '// Required methods fn bar1(&self);'
|
|
// @has - '//pre[@class="rust item-decl"]' 'fn bar2(&self);'
|
|
// @has - '//pre[@class="rust item-decl"]' '// Provided method fn foo(&mut self)'
|
|
pub use inline_default_methods::Baz;
|