Skip to content

Commit 51cee15

Browse files
justjosiasebroto
authored andcommitted
Add negative tests
1 parent b81141c commit 51cee15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/ui/print_stderr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22

33
fn main() {
44
eprintln!("Hello");
5+
println!("This should not do anything");
56
eprint!("World");
7+
print!("Nor should this");
68
}

0 commit comments

Comments
 (0)