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