summaryrefslogtreecommitdiff
path: root/test/test.rs
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-27 00:16:35 -0500
committerpommicket <pommicket@gmail.com>2022-12-27 00:16:35 -0500
commit85ee81b8ae972d17f0e3dc78657077924c047ada (patch)
treec786708c0e3b4d0340e712d01eb0160145e5af38 /test/test.rs
parent9a5cad47fe6a8b84892f62e110ca887c95df5eff (diff)
added workspaceFolders support
but broke non-workspaceFolders support
Diffstat (limited to 'test/test.rs')
-rw-r--r--test/test.rs30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/test.rs b/test/test.rs
new file mode 100644
index 0000000..40c2438
--- /dev/null
+++ b/test/test.rs
@@ -0,0 +1,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
+ ");
+ Ok(())
+}