1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // @has manual_impl/trait.T.html
12 // @has - '//*[@class="docblock"]' 'Docs associated with the trait definition.'
13 // @has - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
14 // @has - '//*[@class="docblock"]' 'Docs associated with the trait b_method definition.'
15 /// Docs associated with the trait definition.
17 /// Docs associated with the trait a_method definition.
18 fn a_method(&self) -> usize;
20 /// Docs associated with the trait b_method definition.
21 fn b_method(&self) -> usize {
26 // @has manual_impl/struct.S1.html '//*[@class="trait"]' 'T'
27 // @has - '//*[@class="docblock"]' 'Docs associated with the S1 trait implementation.'
28 // @has - '//*[@class="docblock"]' 'Docs associated with the S1 trait a_method implementation.'
29 // @!has - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
30 // @!has - '//*[@class="docblock"]' 'Docs associated with the trait b_method definition.'
33 /// Docs associated with the S1 trait implementation.
35 /// Docs associated with the S1 trait a_method implementation.
36 fn a_method(&self) -> usize {
41 // @has manual_impl/struct.S2.html '//*[@class="trait"]' 'T'
42 // @has - '//*[@class="docblock"]' 'Docs associated with the S2 trait implementation.'
43 // @has - '//*[@class="docblock"]' 'Docs associated with the S2 trait a_method implementation.'
44 // @has - '//*[@class="docblock"]' 'Docs associated with the S2 trait b_method implementation.'
45 // @!has - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
46 // @!has - '//*[@class="docblock"]' 'Docs associated with the trait b_method definition.'
49 /// Docs associated with the S2 trait implementation.
51 /// Docs associated with the S2 trait a_method implementation.
52 fn a_method(&self) -> usize {
56 /// Docs associated with the S2 trait b_method implementation.
57 fn b_method(&self) -> usize {
62 // @has manual_impl/struct.S3.html '//*[@class="trait"]' 'T'
63 // @has - '//*[@class="docblock"]' 'Docs associated with the S3 trait implementation.'
64 // @has - '//*[@class="docblock"]' 'Docs associated with the S3 trait b_method implementation.'
65 // @!has - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
68 /// Docs associated with the S3 trait implementation.
70 fn a_method(&self) -> usize {
74 /// Docs associated with the S3 trait b_method implementation.
75 fn b_method(&self) -> usize {