]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/source-version-separator.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / rustdoc / source-version-separator.rs
1 #![stable(feature = "bar", since = "1.0")]
2 #![crate_name = "foo"]
3 #![feature(staged_api)]
4
5 // @has foo/trait.Bar.html
6 // @has - '//div[@class="main-heading"]/*[@class="out-of-band"]' '1.0 · source · '
7 #[stable(feature = "bar", since = "1.0")]
8 pub trait Bar {
9     // @has - '//*[@id="tymethod.foo"]/*[@class="rightside"]' '3.0 · source'
10     #[stable(feature = "foobar", since = "3.0")]
11     fn foo();
12 }
13
14 // @has - '//div[@id="implementors-list"]//*[@class="rightside"]' '4.0 · source'
15
16 // @has foo/struct.Foo.html
17 // @has - '//div[@class="main-heading"]/*[@class="out-of-band"]' '1.0 · source · '
18 #[stable(feature = "baz", since = "1.0")]
19 pub struct Foo;
20
21 impl Foo {
22     // @has - '//*[@id="method.foofoo"]/*[@class="rightside"]' '3.0 · source'
23     #[stable(feature = "foobar", since = "3.0")]
24     pub fn foofoo() {}
25 }
26
27 #[stable(feature = "yolo", since = "4.0")]
28 impl Bar for Foo {
29     fn foo() {}
30 }