@@ -14,10 +14,10 @@ extern crate source_code;
1414#[ path = "auxiliary/source-code-bar.rs" ]
1515pub mod bar;
1616
17- // @count - '//pre[@class="rust"]//a[@href="auxiliary/source-code-bar.rs.html#5"]' 4
17+ // @count - '//pre[@class="rust"]//a[@href="auxiliary/source-code-bar.rs.html#5-7 "]' 4
1818use bar:: Bar ;
19- // @has - '//pre[@class="rust"]//a[@href="auxiliary/source-code-bar.rs.html#13"]' 'self'
20- // @has - '//pre[@class="rust"]//a[@href="auxiliary/source-code-bar.rs.html#14"]' 'Trait'
19+ // @has - '//pre[@class="rust"]//a[@href="auxiliary/source-code-bar.rs.html#13-17 "]' 'self'
20+ // @has - '//pre[@class="rust"]//a[@href="auxiliary/source-code-bar.rs.html#14-16 "]' 'Trait'
2121use bar:: sub:: { self , Trait } ;
2222
2323pub struct Foo ;
@@ -32,7 +32,8 @@ fn babar() {}
3232// @has - '//pre[@class="rust"]//a/@href' '/primitive.u32.html'
3333// @has - '//pre[@class="rust"]//a/@href' '/primitive.str.html'
3434// @count - '//pre[@class="rust"]//a[@href="#23"]' 5
35- // @has - '//pre[@class="rust"]//a[@href="../../source_code/struct.SourceCode.html"]' 'source_code::SourceCode'
35+ // @has - '//pre[@class="rust"]//a[@href="../../source_code/struct.SourceCode.html"]' \
36+ // 'source_code::SourceCode'
3637pub fn foo ( a : u32 , b : & str , c : String , d : Foo , e : bar:: Bar , f : source_code:: SourceCode ) {
3738 let x = 12 ;
3839 let y: Foo = Foo ;
@@ -42,15 +43,15 @@ pub fn foo(a: u32, b: &str, c: String, d: Foo, e: bar::Bar, f: source_code::Sour
4243 y. hello ( ) ;
4344}
4445
45- // @has - '//pre[@class="rust"]//a[@href="auxiliary/source-code-bar.rs.html#14"]' 'bar::sub::Trait'
46- // @has - '//pre[@class="rust"]//a[@href="auxiliary/source-code-bar.rs.html#14"]' 'Trait'
46+ // @has - '//pre[@class="rust"]//a[@href="auxiliary/source-code-bar.rs.html#14-16 "]' 'bar::sub::Trait'
47+ // @has - '//pre[@class="rust"]//a[@href="auxiliary/source-code-bar.rs.html#14-16 "]' 'Trait'
4748pub fn foo2 < T : bar:: sub:: Trait , V : Trait > ( t : & T , v : & V , b : bool ) { }
4849
4950pub trait AnotherTrait { }
5051pub trait WhyNot { }
5152
52- // @has - '//pre[@class="rust"]//a[@href="#49 "]' 'AnotherTrait'
53- // @has - '//pre[@class="rust"]//a[@href="#50 "]' 'WhyNot'
53+ // @has - '//pre[@class="rust"]//a[@href="#50 "]' 'AnotherTrait'
54+ // @has - '//pre[@class="rust"]//a[@href="#51 "]' 'WhyNot'
5455pub fn foo3 < T , V > ( t : & T , v : & V )
5556where
5657 T : AnotherTrait ,
5960
6061pub trait AnotherTrait2 { }
6162
62- // @has - '//pre[@class="rust"]//a[@href="#60 "]' 'AnotherTrait2'
63+ // @has - '//pre[@class="rust"]//a[@href="#61 "]' 'AnotherTrait2'
6364pub fn foo4 ( ) {
6465 let x: Vec < AnotherTrait2 > = Vec :: new ( ) ;
6566}
0 commit comments