mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +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
 | 
						|
//! ```
 |