summaryrefslogtreecommitdiff
path: root/test/test.rs
blob: 3d938f27061ca54f95f67e96a0933302dfd1a351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
testing comments
/* /* /* /* /* hello */ */ */ */ */
yay
*/
use std::fs::File;
use std::io::{Result, BufRead, BufReader};
fn main() -> Result<()> {
	let file = File::open("test.rs")?;
	let mut reader = BufReader::new(file);
	let mut lines = vec![];
	
	loop {
		let mut line = String::new();
		if reader.read_line(&mut line)? == 0 {
			// reached end of file
			break;
		}
		line.pop();
		lines.push(line);
	}
let x = lines.
	for line in lines {
		println!("{}", line);
	}
	print!("
	string
	{}", 1usize);
	Ok(())
}