mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			335 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			335 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ compile-flags:--test
 | |
| 
 | |
| // https://github.com/rust-lang/rust/issues/23744
 | |
| #![crate_name="issue_23744"]
 | |
| 
 | |
| /// Example of rustdoc incorrectly parsing <code>```rust,should_panic</code>.
 | |
| ///
 | |
| /// ```should_panic
 | |
| /// fn main() { panic!("fee"); }
 | |
| /// ```
 | |
| ///
 | |
| /// ```rust,should_panic
 | |
| /// fn main() { panic!("fum"); }
 | |
| /// ```
 | |
| pub fn foo() {}
 |