mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Rust
		
	
	
	
	
	
| pub struct Struct {
 | |
|     _private: (),
 | |
| }
 | |
| 
 | |
| pub trait Trait {
 | |
|     //@ has assoc_consts_underscore/trait.Trait.html '//pre[@class="rust item-decl"]' \
 | |
|     //      'const REQUIRED: Struct;'
 | |
|     //@ !has - '//*[@id="associatedconstant.REQUIRED"]' 'const REQUIRED: Struct = _'
 | |
|     //@ has - '//*[@id="associatedconstant.REQUIRED"]' 'const REQUIRED: Struct'
 | |
|     const REQUIRED: Struct;
 | |
|     //@ has - '//pre[@class="rust item-decl"]' 'const OPTIONAL: Struct = _;'
 | |
|     //@ has - '//*[@id="associatedconstant.OPTIONAL"]' 'const OPTIONAL: Struct = _'
 | |
|     const OPTIONAL: Struct = Struct { _private: () };
 | |
| }
 | |
| 
 | |
| impl Trait for Struct {
 | |
|     //@ !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'
 | |
|     const OPTIONAL: Struct = Struct { _private: () };
 | |
| }
 | |
| 
 | |
| impl Struct {
 | |
|     //@ !has - '//*[@id="associatedconstant.INHERENT"]' 'const INHERENT: Struct = _'
 | |
|     //@ has - '//*[@id="associatedconstant.INHERENT"]' 'const INHERENT: Struct'
 | |
|     pub const INHERENT: Struct = Struct { _private: () };
 | |
| }
 | 
