mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			429 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			429 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // This test checks that it will output warnings for usage of `standalone` or `standalone_crate`.
 | |
| 
 | |
| //@ edition: 2024
 | |
| //@ compile-flags:--test
 | |
| //@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
 | |
| //@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
 | |
| //@ normalize-stdout: ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
 | |
| 
 | |
| #![deny(warnings)]
 | |
| 
 | |
| //! ```standalone
 | |
| //! bla
 | |
| //! ```
 | |
| //!
 | |
| //! ```standalone-crate
 | |
| //! bla
 | |
| //! ```
 | 
