mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
24 lines
551 B
Rust
24 lines
551 B
Rust
// https://github.com/rust-lang/rust/issues/29449
|
|
#![crate_name="issue_29449"]
|
|
|
|
// @has issue_29449/struct.Foo.html
|
|
pub struct Foo;
|
|
|
|
impl Foo {
|
|
// @has - '//*[@id="examples"]//a' 'Examples'
|
|
// @has - '//*[@id="panics"]//a' 'Panics'
|
|
/// # Examples
|
|
/// # Panics
|
|
pub fn bar() {}
|
|
|
|
// @has - '//*[@id="examples-1"]//a' 'Examples'
|
|
/// # Examples
|
|
pub fn bar_1() {}
|
|
|
|
// @has - '//*[@id="examples-2"]//a' 'Examples'
|
|
// @has - '//*[@id="panics-1"]//a' 'Panics'
|
|
/// # Examples
|
|
/// # Panics
|
|
pub fn bar_2() {}
|
|
}
|