File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ //@ compile-flags: --document-private-items
2+ #![ crate_name = "c" ]
3+ #![ feature( impl_restriction) ]
4+
5+ //@ matches c/trait.Foo.html '//*[@class="stab impl_restriction"]' \
6+ // 'This trait cannot be implemented outside c.$'
7+ //@ has c/trait.Foo.html '//*[@class="stab impl_restriction"]//code' 'c'
8+ pub impl ( crate ) trait Foo { }
9+
10+ pub mod inner {
11+ //@ matches c/inner/trait.Bar.html '//*[@class="stab impl_restriction"]' \
12+ // 'This trait cannot be implemented outside c::inner.$'
13+ //@ has c/inner/trait.Bar.html '//*[@class="stab impl_restriction"]//code' 'c::inner'
14+ pub impl ( self ) trait Bar { }
15+ }
Original file line number Diff line number Diff line change 1+ #![ crate_name = "c" ]
2+ #![ feature( impl_restriction) ]
3+
4+ //@ matches c/trait.Foo.html '//*[@class="stab impl_restriction"]' \
5+ // 'This trait cannot be implemented outside c.$'
6+ //@ has c/trait.Foo.html '//*[@class="stab impl_restriction"]//code' 'c'
7+ pub impl ( crate ) trait Foo { }
8+
9+ pub mod inner {
10+ //@ matches c/inner/trait.Bar.html '//*[@class="stab impl_restriction"]' \
11+ // 'This trait cannot be implemented outside c.$'
12+ //@ has c/inner/trait.Bar.html '//*[@class="stab impl_restriction"]//code' 'c'
13+ pub impl ( self ) trait Bar { }
14+ }
You can’t perform that action at this time.
0 commit comments