]> git.lizzy.rs Git - rust.git/blob - tests/ui/print_with_newline.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / print_with_newline.stderr
1 error: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead
2   --> $DIR/print_with_newline.rs:14:5
3    |
4 LL |     print!("Hello/n");
5    |     ^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::print-with-newline` implied by `-D warnings`
8
9 error: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead
10   --> $DIR/print_with_newline.rs:15:5
11    |
12 LL |     print!("Hello {}/n", "world");
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead
16   --> $DIR/print_with_newline.rs:16:5
17    |
18 LL |     print!("Hello {} {}/n", "world", "#2");
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead
22   --> $DIR/print_with_newline.rs:17:5
23    |
24 LL |     print!("{}/n", 1265);
25    |     ^^^^^^^^^^^^^^^^^^^^
26
27 error: aborting due to 4 previous errors
28