mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
		
			624 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			624 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // compile-flags:-Z unstable-options --show-coverage
 | |
| // check-pass
 | |
| 
 | |
| // The point of this test is to ensure that the number of "documented" items
 | |
| // is higher than in `enum-tuple.rs`.
 | |
| 
 | |
| //! (remember the crate root is still a module)
 | |
| 
 | |
| /// so check out this enum here
 | |
| pub enum ThisEnum {
 | |
|     /// VarOne.
 | |
|     VarOne(
 | |
|         /// hello!
 | |
|         String,
 | |
|     ),
 | |
|     /// Var Two.
 | |
|     VarTwo(
 | |
|         /// Hello
 | |
|         String,
 | |
|         /// Bis repetita.
 | |
|         String,
 | |
|     ),
 | |
| }
 | |
| 
 | |
| /// Struct.
 | |
| pub struct ThisStruct(
 | |
|     /// hello
 | |
|     u32,
 | |
| );
 | |
| 
 | |
| /// Struct.
 | |
| pub struct ThisStruct2(
 | |
|     /// hello
 | |
|     u32,
 | |
|     /// Bis repetita.
 | |
|     u8,
 | |
| );
 | 
