@@ -14,10 +14,10 @@ extern crate source_code;
14
14
#[ path = "auxiliary/source-code-bar.rs" ]
15
15
pub mod bar;
16
16
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
18
18
use 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'
21
21
use bar:: sub:: { self , Trait } ;
22
22
23
23
pub struct Foo ;
@@ -32,7 +32,8 @@ fn babar() {}
32
32
// @has - '//pre[@class="rust"]//a/@href' '/primitive.u32.html'
33
33
// @has - '//pre[@class="rust"]//a/@href' '/primitive.str.html'
34
34
// @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'
36
37
pub fn foo ( a : u32 , b : & str , c : String , d : Foo , e : bar:: Bar , f : source_code:: SourceCode ) {
37
38
let x = 12 ;
38
39
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
42
43
y. hello ( ) ;
43
44
}
44
45
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'
47
48
pub fn foo2 < T : bar:: sub:: Trait , V : Trait > ( t : & T , v : & V , b : bool ) { }
48
49
49
50
pub trait AnotherTrait { }
50
51
pub trait WhyNot { }
51
52
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'
54
55
pub fn foo3 < T , V > ( t : & T , v : & V )
55
56
where
56
57
T : AnotherTrait ,
59
60
60
61
pub trait AnotherTrait2 { }
61
62
62
- // @has - '//pre[@class="rust"]//a[@href="#60 "]' 'AnotherTrait2'
63
+ // @has - '//pre[@class="rust"]//a[@href="#61 "]' 'AnotherTrait2'
63
64
pub fn foo4 ( ) {
64
65
let x: Vec < AnotherTrait2 > = Vec :: new ( ) ;
65
66
}
0 commit comments