|
| 1 | +error: using `eprint!()` with a format string that ends in a single newline |
| 2 | + --> $DIR/eprint_with_newline.rs:5:5 |
| 3 | + | |
| 4 | +LL | eprint!("Hello/n"); |
| 5 | + | ^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: `-D clippy::print-with-newline` implied by `-D warnings` |
| 8 | +help: use `eprintln!` instead |
| 9 | + | |
| 10 | +LL | eprintln!("Hello"); |
| 11 | + | ^^^^^^^^ -- |
| 12 | + |
| 13 | +error: using `eprint!()` with a format string that ends in a single newline |
| 14 | + --> $DIR/eprint_with_newline.rs:6:5 |
| 15 | + | |
| 16 | +LL | eprint!("Hello {}/n", "world"); |
| 17 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 18 | + | |
| 19 | +help: use `eprintln!` instead |
| 20 | + | |
| 21 | +LL | eprintln!("Hello {}", "world"); |
| 22 | + | ^^^^^^^^ -- |
| 23 | + |
| 24 | +error: using `eprint!()` with a format string that ends in a single newline |
| 25 | + --> $DIR/eprint_with_newline.rs:7:5 |
| 26 | + | |
| 27 | +LL | eprint!("Hello {} {}/n", "world", "#2"); |
| 28 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 29 | + | |
| 30 | +help: use `eprintln!` instead |
| 31 | + | |
| 32 | +LL | eprintln!("Hello {} {}", "world", "#2"); |
| 33 | + | ^^^^^^^^ -- |
| 34 | + |
| 35 | +error: using `eprint!()` with a format string that ends in a single newline |
| 36 | + --> $DIR/eprint_with_newline.rs:8:5 |
| 37 | + | |
| 38 | +LL | eprint!("{}/n", 1265); |
| 39 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 40 | + | |
| 41 | +help: use `eprintln!` instead |
| 42 | + | |
| 43 | +LL | eprintln!("{}", 1265); |
| 44 | + | ^^^^^^^^ -- |
| 45 | + |
| 46 | +error: using `eprint!()` with a format string that ends in a single newline |
| 47 | + --> $DIR/eprint_with_newline.rs:9:5 |
| 48 | + | |
| 49 | +LL | eprint!("/n"); |
| 50 | + | ^^^^^^^^^^^^^ |
| 51 | + | |
| 52 | +help: use `eprintln!` instead |
| 53 | + | |
| 54 | +LL | eprintln!(); |
| 55 | + | ^^^^^^^^ -- |
| 56 | + |
| 57 | +error: using `eprint!()` with a format string that ends in a single newline |
| 58 | + --> $DIR/eprint_with_newline.rs:28:5 |
| 59 | + | |
| 60 | +LL | eprint!("//n"); // should fail |
| 61 | + | ^^^^^^^^^^^^^^^ |
| 62 | + | |
| 63 | +help: use `eprintln!` instead |
| 64 | + | |
| 65 | +LL | eprintln!("/"); // should fail |
| 66 | + | ^^^^^^^^ -- |
| 67 | + |
| 68 | +error: using `eprint!()` with a format string that ends in a single newline |
| 69 | + --> $DIR/eprint_with_newline.rs:35:5 |
| 70 | + | |
| 71 | +LL | / eprint!( |
| 72 | +LL | | " |
| 73 | +LL | | " |
| 74 | +LL | | ); |
| 75 | + | |_____^ |
| 76 | + | |
| 77 | +help: use `eprintln!` instead |
| 78 | + | |
| 79 | +LL | eprintln!( |
| 80 | +LL | "" |
| 81 | + | |
| 82 | + |
| 83 | +error: using `eprint!()` with a format string that ends in a single newline |
| 84 | + --> $DIR/eprint_with_newline.rs:39:5 |
| 85 | + | |
| 86 | +LL | / eprint!( |
| 87 | +LL | | r" |
| 88 | +LL | | " |
| 89 | +LL | | ); |
| 90 | + | |_____^ |
| 91 | + | |
| 92 | +help: use `eprintln!` instead |
| 93 | + | |
| 94 | +LL | eprintln!( |
| 95 | +LL | r"" |
| 96 | + | |
| 97 | + |
| 98 | +error: using `eprint!()` with a format string that ends in a single newline |
| 99 | + --> $DIR/eprint_with_newline.rs:47:5 |
| 100 | + | |
| 101 | +LL | eprint!("/r/n"); //~ ERROR |
| 102 | + | ^^^^^^^^^^^^^^^^ |
| 103 | + | |
| 104 | +help: use `eprintln!` instead |
| 105 | + | |
| 106 | +LL | eprintln!("/r"); //~ ERROR |
| 107 | + | ^^^^^^^^ -- |
| 108 | + |
| 109 | +error: using `eprint!()` with a format string that ends in a single newline |
| 110 | + --> $DIR/eprint_with_newline.rs:48:5 |
| 111 | + | |
| 112 | +LL | eprint!("foo/rbar/n") // ~ ERROR |
| 113 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 114 | + | |
| 115 | +help: use `eprintln!` instead |
| 116 | + | |
| 117 | +LL | eprintln!("foo/rbar") // ~ ERROR |
| 118 | + | ^^^^^^^^ -- |
| 119 | + |
| 120 | +error: aborting due to 10 previous errors |
| 121 | + |
0 commit comments