mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			382 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			382 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ compile-flags:--test --test-args=--test-threads=1
 | |
| //@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
 | |
| //@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
 | |
| //@ failure-status: 101
 | |
| 
 | |
| /// ```
 | |
| /// /* plop
 | |
| /// ```
 | |
| pub fn one() {}
 | |
| 
 | |
| /// ```
 | |
| /// } mod __doctest_1 { fn main() {
 | |
| /// ```
 | |
| pub fn two() {}
 | |
| 
 | |
| /// ```should_panic
 | |
| /// panic!()
 | |
| /// ```
 | |
| pub fn three() {}
 | 
