Skip to content

Commit 4b014a6

Browse files
committed
Add negative tests
1 parent d31ed71 commit 4b014a6

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)