mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			374 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			374 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![crate_name = "foo"]
 | |
| 
 | |
| // @has foo/index.html '//a[@href="foo/constant.FIRSTCONST.html"]' 'foo::FIRSTCONST'
 | |
| // @has foo/index.html '//a[@href="struct.Bar.html#associatedconstant.CONST"]' 'Bar::CONST'
 | |
| 
 | |
| //! We have here [`foo::FIRSTCONST`] and [`Bar::CONST`].
 | |
| 
 | |
| pub mod foo {
 | |
|     pub const FIRSTCONST: u32 = 42;
 | |
| }
 | |
| 
 | |
| pub struct Bar;
 | |
| 
 | |
| impl Bar {
 | |
|     pub const CONST: u32 = 42;
 | |
| }
 | 
