Skip to content

Commit 75967ce

Browse files
Add test for dot separator
1 parent 29b659a commit 75967ce

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#![stable(feature = "bar", since = "1.0")]
2+
#![crate_name = "foo"]
3+
4+
#![feature(staged_api)]
5+
6+
// @has foo/trait.Bar.html
7+
// @has - '//div[@class="main-heading"]/*[@class="out-of-band"]' '1.0· source · '
8+
#[stable(feature = "bar", since = "1.0")]
9+
pub trait Bar {
10+
// @has - '//div[@id="tymethod.foo"]/*[@class="rightside"]' '3.0 · source'
11+
#[stable(feature = "foobar", since = "3.0")]
12+
fn foo();
13+
}
14+
15+
// @has - '//div[@id="implementors-list"]//*[@class="rightside"]' '4.0 · source'
16+
17+
// @has foo/struct.Foo.html
18+
// @has - '//div[@class="main-heading"]/*[@class="out-of-band"]' '1.0· source · '
19+
#[stable(feature = "baz", since = "1.0")]
20+
pub struct Foo;
21+
22+
impl Foo {
23+
// @has - '//div[@id="method.foofoo"]/*[@class="rightside"]' '3.0 · source'
24+
#[stable(feature = "foobar", since = "3.0")]
25+
pub fn foofoo() {}
26+
}
27+
28+
#[stable(feature = "yolo", since = "4.0")]
29+
impl Bar for Foo {
30+
fn foo() {}
31+
}

0 commit comments

Comments
 (0)