File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 11// https://github.com/rust-lang/rust/issues/25001
2- #![ crate_name= "issue_25001" ]
2+ #![ crate_name = "issue_25001" ]
33
44//@ has issue_25001/struct.Foo.html
55pub struct Foo < T > ( T ) ;
@@ -16,30 +16,34 @@ impl Foo<u8> {
1616}
1717impl Foo < u16 > {
1818 //@ 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+ }
2022}
2123impl Foo < u32 > {
2224 //@ 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+ }
2428}
2529
2630impl < T > Bar for Foo < T > {
2731 //@ has - '//*[@id="associatedtype.Item"]//h4[@class="code-header"]' 'type Item = T'
28- type Item = T ;
32+ type Item = T ;
2933
3034 //@ has - '//*[@id="method.quux"]//h4[@class="code-header"]' 'fn quux(self) -> T'
3135 fn quux ( self ) -> T { }
3236}
3337impl < ' a , T > Bar for & ' a Foo < T > {
3438 //@ has - '//*[@id="associatedtype.Item-1"]//h4[@class="code-header"]' "type Item = &'a T"
35- type Item = & ' a T ;
39+ type Item = & ' a T ;
3640
3741 //@ has - '//*[@id="method.quux-1"]//h4[@class="code-header"]' "fn quux(self) -> &'a T"
3842 fn quux ( self ) -> & ' a T { }
3943}
4044impl < ' a , T > Bar for & ' a mut Foo < T > {
4145 //@ 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 ;
4347
4448 //@ has - '//*[@id="method.quux-2"]//h4[@class="code-header"]' "fn quux(self) -> &'a mut T"
4549 fn quux ( self ) -> & ' a mut T { }
You can’t perform that action at this time.
0 commit comments