mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			142 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			142 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use std::fmt;
 | |
| 
 | |
| #[test]
 | |
| fn test_format() {
 | |
|     let s = fmt::format(format_args!("Hello, {}!", "world"));
 | |
|     assert_eq!(s, "Hello, world!");
 | |
| }
 | 
