mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			489 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			489 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ compile-flags:--test --test-args=--test-threads=1 -Zunstable-options --edition 2024
 | 
						|
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
 | 
						|
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
 | 
						|
//@ normalize-stdout-test: ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
 | 
						|
//@ failure-status: 101
 | 
						|
 | 
						|
/// ```
 | 
						|
/// /* plop
 | 
						|
/// ```
 | 
						|
pub fn one() {}
 | 
						|
 | 
						|
/// ```
 | 
						|
/// } mod __doctest_1 { fn main() {
 | 
						|
/// ```
 | 
						|
pub fn two() {}
 | 
						|
 | 
						|
/// ```should_panic
 | 
						|
/// panic!()
 | 
						|
/// ```
 | 
						|
pub fn three() {}
 |