]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/version-separator-without-source.rs
Update unsuspicious file list
[rustc.git] / src / test / rustdoc / version-separator-without-source.rs
CommitLineData
5099ac24
FG
1#![doc(html_no_source)]
2#![feature(staged_api)]
3#![stable(feature = "bar", since = "1.0")]
4#![crate_name = "foo"]
5
6// @has foo/fn.foo.html
7// @has - '//div[@class="main-heading"]/*[@class="out-of-band"]' '1.0 · '
8// @!has - '//div[@class="main-heading"]/*[@class="out-of-band"]' '1.0 · source · '
9#[stable(feature = "bar", since = "1.0")]
10pub fn foo() {}
11
12// @has foo/struct.Bar.html
13// @has - '//div[@class="main-heading"]/*[@class="out-of-band"]' '1.0 · '
14// @!has - '//div[@class="main-heading"]/*[@class="out-of-band"]' '1.0 · source · '
15#[stable(feature = "bar", since = "1.0")]
16pub struct Bar;
17
18impl Bar {
f2b60f7d 19 // @has - '//*[@id="method.bar"]/*[@class="since rightside"]' '2.0'
5099ac24
FG
20 // @!has - '//*[@id="method.bar"]/*[@class="rightside"]' '2.0 ·'
21 #[stable(feature = "foobar", since = "2.0")]
22 pub fn bar() {}
23}