mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			807 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			807 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ check-pass
 | |
| //@ edition: 2024
 | |
| //@ compile-flags: --test --test-args=--test-threads=1
 | |
| //@ normalize-stdout: "tests/rustdoc-ui" -> "$$DIR"
 | |
| //@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
 | |
| //@ normalize-stdout: ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
 | |
| //@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
 | |
| //@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
 | |
| 
 | |
| /// This doctest is used to ensure that if a crate attribute is present,
 | |
| /// it will not be part of the merged doctests.
 | |
| ///
 | |
| /// ```
 | |
| /// #![doc(html_playground_url = "foo")]
 | |
| ///
 | |
| /// pub struct Bar;
 | |
| /// ```
 | |
| ///
 | |
| /// This one will allow us to confirm that the doctest above will be a
 | |
| /// standalone one (there will be two separate doctests passes).
 | |
| ///
 | |
| /// ```
 | |
| /// let x = 12;
 | |
| /// ```
 | |
| pub struct Foo;
 | 
