Commit 059d284 1 parent 4d2dda4 commit 059d284 Copy full SHA for 059d284
File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
// https://github.com/rust-lang/rust/issues/25001
2
- #![ crate_name= "issue_25001" ]
2
+ #![ crate_name = "issue_25001" ]
3
3
4
4
//@ has issue_25001/struct.Foo.html
5
5
pub struct Foo < T > ( T ) ;
@@ -16,30 +16,34 @@ impl Foo<u8> {
16
16
}
17
17
impl Foo < u16 > {
18
18
//@ has - '//*[@id="method.pass-1"]//h4[@class="code-header"]' 'fn pass() -> usize'
19
- pub fn pass ( ) -> usize { 42 }
19
+ pub fn pass ( ) -> usize {
20
+ 42
21
+ }
20
22
}
21
23
impl Foo < u32 > {
22
24
//@ has - '//*[@id="method.pass-2"]//h4[@class="code-header"]' 'fn pass() -> isize'
23
- pub fn pass ( ) -> isize { 42 }
25
+ pub fn pass ( ) -> isize {
26
+ 42
27
+ }
24
28
}
25
29
26
30
impl < T > Bar for Foo < T > {
27
31
//@ has - '//*[@id="associatedtype.Item"]//h4[@class="code-header"]' 'type Item = T'
28
- type Item = T ;
32
+ type Item = T ;
29
33
30
34
//@ has - '//*[@id="method.quux"]//h4[@class="code-header"]' 'fn quux(self) -> T'
31
35
fn quux ( self ) -> T { }
32
36
}
33
37
impl < ' a , T > Bar for & ' a Foo < T > {
34
38
//@ has - '//*[@id="associatedtype.Item-1"]//h4[@class="code-header"]' "type Item = &'a T"
35
- type Item = & ' a T ;
39
+ type Item = & ' a T ;
36
40
37
41
//@ has - '//*[@id="method.quux-1"]//h4[@class="code-header"]' "fn quux(self) -> &'a T"
38
42
fn quux ( self ) -> & ' a T { }
39
43
}
40
44
impl < ' a , T > Bar for & ' a mut Foo < T > {
41
45
//@ has - '//*[@id="associatedtype.Item-2"]//h4[@class="code-header"]' "type Item = &'a mut T"
42
- type Item = & ' a mut T ;
46
+ type Item = & ' a mut T ;
43
47
44
48
//@ has - '//*[@id="method.quux-2"]//h4[@class="code-header"]' "fn quux(self) -> &'a mut T"
45
49
fn quux ( self ) -> & ' a mut T { }
You can’t perform that action at this time.
0 commit comments