File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ // This test ensures that negative impls don't have items listed inside them.
2+
3+ #![ feature( negative_impls) ]
4+ #![ crate_name = "foo" ]
5+
6+ pub struct Thing ;
7+
8+ //@ has 'foo/struct.Thing.html'
9+ // We check the full path to ensure there is no `<details>` element.
10+ //@ has - '//div[@id="trait-implementations-list"]/section[@id="impl-Iterator-for-Thing"]/h3' \
11+ // 'impl !Iterator for Thing'
12+ impl !Iterator for Thing { }
13+
14+ // This struct will allow us to compare both paths.
15+ pub struct Witness ;
16+
17+ //@ has 'foo/struct.Witness.html'
18+ //@ has - '//div[@id="trait-implementations-list"]/details//section[@id="impl-Iterator-for-Witness"]/h3' \
19+ // 'impl Iterator for Witness'
20+ impl Iterator for Witness {
21+ type Item = u8 ;
22+
23+ fn next ( & mut self ) -> Option < Self :: Item > {
24+ None
25+ }
26+ }
You can’t perform that action at this time.
0 commit comments