]> git.lizzy.rs Git - rust.git/blob - tests/ui/print_with_newline.stderr
rustup and compile-fail -> ui test move
[rust.git] / tests / ui / print_with_newline.stderr
1 error: using `print!()` with a format string that ends in a newline, consider using `println!()` instead
2  --> $DIR/print_with_newline.rs:6:5
3   |
4 6 |     print!("Hello/n"); //~ERROR using `print!()` with a format string
5   |     ^^^^^^^^^^^^^^^^^^
6   |
7 note: lint level defined here
8  --> $DIR/print_with_newline.rs:3:9
9   |
10 3 | #![deny(print_with_newline)]
11   |         ^^^^^^^^^^^^^^^^^^
12
13 error: using `print!()` with a format string that ends in a newline, consider using `println!()` instead
14  --> $DIR/print_with_newline.rs:7:5
15   |
16 7 |     print!("Hello {}/n", "world"); //~ERROR using `print!()` with a format string
17   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: using `print!()` with a format string that ends in a newline, consider using `println!()` instead
20  --> $DIR/print_with_newline.rs:8:5
21   |
22 8 |     print!("Hello {} {}/n/n", "world", "#2"); //~ERROR using `print!()` with a format string
23   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 error: using `print!()` with a format string that ends in a newline, consider using `println!()` instead
26  --> $DIR/print_with_newline.rs:9:5
27   |
28 9 |     print!("{}/n", 1265); //~ERROR using `print!()` with a format string
29   |     ^^^^^^^^^^^^^^^^^^^^^
30
31 error: aborting due to 4 previous errors
32