mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			386 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			386 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ check-pass
 | |
| //@ compile-flags: --test -Zunstable-options --doctest-compilation-args=--cfg=testcase_must_be_present
 | |
| //@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
 | |
| //@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
 | |
| 
 | |
| /// ```
 | |
| /// #[cfg(testcase_must_be_present)]
 | |
| /// fn must_be_present() {}
 | |
| ///
 | |
| /// fn main() { must_be_present() }
 | |
| /// ```
 | |
| pub struct Bar;
 | 
