]> git.lizzy.rs Git - rust.git/blob - tests/ui/print_with_newline.stderr
Merge pull request #2984 from flip1995/single_char_pattern
[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:7:5
3   |
4 7 |     print!("Hello/n");
5   |     ^^^^^^^^^^^^^^^^^
6   |
7   = note: `-D print-with-newline` implied by `-D warnings`
8
9 error: using `print!()` with a format string that ends in a newline, consider using `println!()` instead
10  --> $DIR/print_with_newline.rs:8:5
11   |
12 8 |     print!("Hello {}/n", "world");
13   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: using `print!()` with a format string that ends in a newline, consider using `println!()` instead
16  --> $DIR/print_with_newline.rs:9:5
17   |
18 9 |     print!("Hello {} {}/n/n", "world", "#2");
19   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: using `print!()` with a format string that ends in a newline, consider using `println!()` instead
22   --> $DIR/print_with_newline.rs:10:5
23    |
24 10 |     print!("{}/n", 1265);
25    |     ^^^^^^^^^^^^^^^^^^^^
26
27 error: aborting due to 4 previous errors
28