Suppress = _
on associated constants in impls
This commit is contained in:
parent
da89d10264
commit
6bdfd12ee9
3 changed files with 47 additions and 14 deletions
|
@ -14,14 +14,17 @@ pub trait Trait {
|
|||
}
|
||||
|
||||
impl Trait for Struct {
|
||||
//@ has assoc_consts_underscore/struct.Struct.html '//*[@id="associatedconstant.REQUIRED"]' \
|
||||
//@ !has assoc_consts_underscore/struct.Struct.html '//*[@id="associatedconstant.REQUIRED"]' \
|
||||
// 'const REQUIRED: Struct = _'
|
||||
//@ has - '//*[@id="associatedconstant.REQUIRED"]' 'const REQUIRED: Struct'
|
||||
const REQUIRED: Struct = Struct { _private: () };
|
||||
//@ has - '//*[@id="associatedconstant.OPTIONAL"]' 'const OPTIONAL: Struct = _'
|
||||
//@ !has - '//*[@id="associatedconstant.OPTIONAL"]' 'const OPTIONAL: Struct = _'
|
||||
//@ has - '//*[@id="associatedconstant.OPTIONAL"]' 'const OPTIONAL: Struct'
|
||||
const OPTIONAL: Struct = Struct { _private: () };
|
||||
}
|
||||
|
||||
impl Struct {
|
||||
//@ has - '//*[@id="associatedconstant.INHERENT"]' 'const INHERENT: Struct = _'
|
||||
//@ !has - '//*[@id="associatedconstant.INHERENT"]' 'const INHERENT: Struct = _'
|
||||
//@ has - '//*[@id="associatedconstant.INHERENT"]' 'const INHERENT: Struct'
|
||||
pub const INHERENT: Struct = Struct { _private: () };
|
||||
}
|
||||
|
|
|
@ -14,6 +14,6 @@ impl<const B: Word> Repr<B> {
|
|||
// If we change back to rendering the value of consts, check this doesn't add
|
||||
// a <b> tag, but escapes correctly
|
||||
|
||||
//@ has foo/struct.Repr.html '//section[@id="associatedconstant.BASE"]/h4' '= _'
|
||||
//@ !has foo/struct.Repr.html '//section[@id="associatedconstant.BASE"]/h4' '='
|
||||
pub const BASE: IBig = base_as_ibig::<B>();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue