mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 12:36:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			376 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			376 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ compile-flags: -Z unstable-options --check
 | |
| 
 | |
| #![feature(rustdoc_missing_doc_code_examples)]
 | |
| #![deny(missing_docs)]
 | |
| #![deny(rustdoc::missing_doc_code_examples)]
 | |
| #![deny(rustdoc::all)]
 | |
| 
 | |
| //! ```rust,testharness
 | |
| //~^ ERROR
 | |
| //! let x = 12;
 | |
| //! ```
 | |
| 
 | |
| pub fn foo() {}
 | |
| //~^ ERROR
 | |
| //~^^ ERROR
 | |
| 
 | |
| /// hello
 | |
| //~^ ERROR
 | |
| ///
 | |
| /// ```rust,testharness
 | |
| /// let x = 12;
 | |
| /// ```
 | |
| pub fn bar() {}
 | 
