summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/doc-hidden-method-13698.rs
blob: f1bd6e73babdd6c9f4f9a46666c800a425f601bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// aux-build:issue-13698.rs
// ignore-cross-compile

// https://github.com/rust-lang/rust/issues/13698
#![crate_name="issue_13698"]

extern crate issue_13698;

pub struct Foo;
// @!has issue_13698/struct.Foo.html '//*[@id="method.foo"]' 'fn foo'
impl issue_13698::Foo for Foo {}

pub trait Bar {
    #[doc(hidden)]
    fn bar(&self) {}
}

// @!has issue_13698/struct.Foo.html '//*[@id="method.bar"]' 'fn bar'
impl Bar for Foo {}