File tree 1 file changed +7
-7
lines changed
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);
7
7
pub trait Bar {
8
8
type Item ;
9
9
10
- fn quux ( self ) ;
10
+ fn quux ( self ) -> Self :: Item ;
11
11
}
12
12
13
13
impl Foo < u8 > {
@@ -27,20 +27,20 @@ impl<T> Bar for Foo<T> {
27
27
//@ has - '//*[@id="associatedtype.Item"]//h4[@class="code-header"]' 'type Item = T'
28
28
type Item =T ;
29
29
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 { }
32
32
}
33
33
impl < ' a , T > Bar for & ' a Foo < T > {
34
34
//@ has - '//*[@id="associatedtype.Item-1"]//h4[@class="code-header"]' "type Item = &'a T"
35
35
type Item =& ' a T ;
36
36
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 { }
39
39
}
40
40
impl < ' a , T > Bar for & ' a mut Foo < T > {
41
41
//@ has - '//*[@id="associatedtype.Item-2"]//h4[@class="code-header"]' "type Item = &'a mut T"
42
42
type Item =& ' a mut T ;
43
43
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 { }
46
46
}
You can’t perform that action at this time.
0 commit comments