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