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 {
25 /// Docs associated with the trait c_method definition.
27 /// There is another line
28 fn c_method(&self) -> usize {
33 // @has manual_impl/struct.S1.html '//*[@class="trait"]' 'T'
34 // @has - '//*[@class="docblock"]' 'Docs associated with the S1 trait implementation.'
35 // @has - '//*[@class="docblock"]' 'Docs associated with the S1 trait a_method implementation.'
36 // @!has - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
37 // @has - '//*[@class="docblock"]' 'Docs associated with the trait b_method definition.'
38 // @has - '//*[@class="docblock"]' 'Docs associated with the trait b_method definition.'
39 // @has - '//*[@class="docblock"]' 'Docs associated with the trait c_method definition.'
40 // @!has - '//*[@class="docblock"]' 'There is another line'
41 // @has - '//*[@class="docblock"]' 'Read more'
44 /// Docs associated with the S1 trait implementation.
46 /// Docs associated with the S1 trait a_method implementation.
47 fn a_method(&self) -> usize {
52 // @has manual_impl/struct.S2.html '//*[@class="trait"]' 'T'
53 // @has - '//*[@class="docblock"]' 'Docs associated with the S2 trait implementation.'
54 // @has - '//*[@class="docblock"]' 'Docs associated with the S2 trait a_method implementation.'
55 // @has - '//*[@class="docblock"]' 'Docs associated with the S2 trait c_method implementation.'
56 // @!has - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
57 // @!has - '//*[@class="docblock"]' 'Docs associated with the trait c_method definition.'
58 // @has - '//*[@class="docblock"]' 'Docs associated with the trait b_method definition.'
59 // @!has - '//*[@class="docblock"]' 'Read more'
62 /// Docs associated with the S2 trait implementation.
64 /// Docs associated with the S2 trait a_method implementation.
65 fn a_method(&self) -> usize {
69 /// Docs associated with the S2 trait c_method implementation.
70 fn c_method(&self) -> usize {
75 // @has manual_impl/struct.S3.html '//*[@class="trait"]' 'T'
76 // @has - '//*[@class="docblock"]' 'Docs associated with the S3 trait implementation.'
77 // @has - '//*[@class="docblock"]' 'Docs associated with the S3 trait b_method implementation.'
78 // @has - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
81 /// Docs associated with the S3 trait implementation.
83 fn a_method(&self) -> usize {
87 /// Docs associated with the S3 trait b_method implementation.
88 fn b_method(&self) -> usize {