]>
git.proxmox.com Git - rustc.git/blob - tests/rustdoc/issue-25001.rs
1 // @has issue_25001/struct.Foo.html
11 // @has - '//*[@id="method.pass"]//h4[@class="code-header"]' 'fn pass()'
15 // @has - '//*[@id="method.pass-1"]//h4[@class="code-header"]' 'fn pass() -> usize'
16 pub fn pass() -> usize { 42 }
19 // @has - '//*[@id="method.pass-2"]//h4[@class="code-header"]' 'fn pass() -> isize'
20 pub fn pass() -> isize { 42 }
23 impl<T
> Bar
for Foo
<T
> {
24 // @has - '//*[@id="associatedtype.Item"]//h4[@class="code-header"]' 'type Item = T'
27 // @has - '//*[@id="method.quux"]//h4[@class="code-header"]' 'fn quux(self)'
30 impl<'a
, T
> Bar
for &'a Foo
<T
> {
31 // @has - '//*[@id="associatedtype.Item-1"]//h4[@class="code-header"]' "type Item = &'a T"
34 // @has - '//*[@id="method.quux-1"]//h4[@class="code-header"]' 'fn quux(self)'
37 impl<'a
, T
> Bar
for &'a
mut Foo
<T
> {
38 // @has - '//*[@id="associatedtype.Item-2"]//h4[@class="code-header"]' "type Item = &'a mut T"
41 // @has - '//*[@id="method.quux-2"]//h4[@class="code-header"]' 'fn quux(self)'