mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			421 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			421 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Test that `--show-output` has an effect and `allow(unused)` can be overridden.
 | |
| 
 | |
| //@ check-pass
 | |
| //@ edition:2018
 | |
| //@ compile-flags:--test --test-args=--show-output
 | |
| //@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
 | |
| //@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
 | |
| 
 | |
| /// ```
 | |
| /// #![warn(unused)]
 | |
| /// let x = 12;
 | |
| ///
 | |
| /// fn foo(x: &dyn std::fmt::Display) {}
 | |
| /// ```
 | |
| pub fn foo() {}
 | 
