summaryrefslogtreecommitdiff
path: root/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test.rs')
-rw-r--r--test.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/test.rs b/test.rs
deleted file mode 100644
index 40c2438..0000000
--- a/test.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
-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
- ");
- Ok(())
-}