mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 15:05:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			327 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			327 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ run-pass
 | 
						|
 | 
						|
fn main() {
 | 
						|
    assert_eq!(
 | 
						|
        &include_bytes!("data.bin")[..],
 | 
						|
        &b"\xEF\xBB\xBFThis file starts with BOM.\r\nLines are separated by \\r\\n.\r\n"[..],
 | 
						|
    );
 | 
						|
    assert_eq!(
 | 
						|
        include_str!("data.bin"),
 | 
						|
        "\u{FEFF}This file starts with BOM.\r\nLines are separated by \\r\\n.\r\n",
 | 
						|
    );
 | 
						|
}
 |