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