File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ pub struct Struct {
2+ _private : ( ) ,
3+ }
4+
5+ pub trait Trait {
6+ //@ has assoc_consts_underscore/trait.Trait.html '//pre[@class="rust item-decl"]' \
7+ // 'const REQUIRED: Struct;'
8+ //@ !has - '//*[@id="associatedconstant.REQUIRED"]' 'const REQUIRED: Struct = _'
9+ //@ has - '//*[@id="associatedconstant.REQUIRED"]' 'const REQUIRED: Struct'
10+ const REQUIRED : Struct ;
11+ //@ has - '//pre[@class="rust item-decl"]' 'const OPTIONAL: Struct = _;'
12+ //@ has - '//*[@id="associatedconstant.OPTIONAL"]' 'const OPTIONAL: Struct = _'
13+ const OPTIONAL : Struct = Struct { _private : ( ) } ;
14+ }
15+
16+ impl Trait for Struct {
17+ //@ has assoc_consts_underscore/struct.Struct.html '//*[@id="associatedconstant.REQUIRED"]' \
18+ // 'const REQUIRED: Struct = _'
19+ const REQUIRED : Struct = Struct { _private : ( ) } ;
20+ //@ has - '//*[@id="associatedconstant.OPTIONAL"]' 'const OPTIONAL: Struct = _'
21+ const OPTIONAL : Struct = Struct { _private : ( ) } ;
22+ }
23+
24+ impl Struct {
25+ //@ has - '//*[@id="associatedconstant.INHERENT"]' 'const INHERENT: Struct = _'
26+ pub const INHERENT : Struct = Struct { _private : ( ) } ;
27+ }
You can’t perform that action at this time.
0 commit comments