1 //prior to fixing `everybody_loops` to preserve items, rustdoc would crash on this file, as it
2 //didn't see that `SomeStruct` implemented `Clone`
4 pub struct Bounded<T: Clone>(T);
6 // @has traits_in_bodies/struct.SomeStruct.html
7 // @has - '//h3[@class="code-header in-band"]' 'impl Clone for SomeStruct'
10 fn asdf() -> Bounded<SomeStruct> {
11 impl Clone for SomeStruct {
12 fn clone(&self) -> SomeStruct {
20 // @has traits_in_bodies/struct.Point.html
21 // @has - '//h3[@class="code-header in-band"]' 'impl Copy for Point'
29 impl Copy for Point {}
33 // @has traits_in_bodies/struct.Inception.html
34 // @has - '//h3[@class="code-header in-band"]' 'impl Clone for Inception'
37 static _BAR: usize = {
41 impl Clone for Inception {
42 fn clone(&self) -> Self {
43 // we need to go deeper