File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pub struct Foo<T>(T);
77pub trait Bar {
88 type Item ;
99
10- fn quux ( self ) ;
10+ fn quux ( self ) -> Self :: Item ;
1111}
1212
1313impl Foo < u8 > {
@@ -27,20 +27,20 @@ impl<T> Bar for Foo<T> {
2727 //@ has - '//*[@id="associatedtype.Item"]//h4[@class="code-header"]' 'type Item = T'
2828 type Item =T ;
2929
30- //@ has - '//*[@id="method.quux"]//h4[@class="code-header"]' 'fn quux(self)'
31- fn quux ( self ) { }
30+ //@ has - '//*[@id="method.quux"]//h4[@class="code-header"]' 'fn quux(self) -> T '
31+ fn quux ( self ) -> T { }
3232}
3333impl < ' a , T > Bar for & ' a Foo < T > {
3434 //@ has - '//*[@id="associatedtype.Item-1"]//h4[@class="code-header"]' "type Item = &'a T"
3535 type Item =& ' a T ;
3636
37- //@ has - '//*[@id="method.quux-1"]//h4[@class="code-header"]' ' fn quux(self)'
38- fn quux ( self ) { }
37+ //@ has - '//*[@id="method.quux-1"]//h4[@class="code-header"]' " fn quux(self) -> &'a T"
38+ fn quux ( self ) -> & ' a T { }
3939}
4040impl < ' a , T > Bar for & ' a mut Foo < T > {
4141 //@ has - '//*[@id="associatedtype.Item-2"]//h4[@class="code-header"]' "type Item = &'a mut T"
4242 type Item =& ' a mut T ;
4343
44- //@ has - '//*[@id="method.quux-2"]//h4[@class="code-header"]' ' fn quux(self)'
45- fn quux ( self ) { }
44+ //@ has - '//*[@id="method.quux-2"]//h4[@class="code-header"]' " fn quux(self) -> &'a mut T"
45+ fn quux ( self ) -> & ' a mut T { }
4646}
You can’t perform that action at this time.
0 commit comments