2022-02-26 13:26:21 +00:00
|
|
|
error: use of `print!` in `Debug` impl
|
|
|
|
--> $DIR/print_in_format_impl.rs:20:9
|
|
|
|
|
|
|
|
|
LL | print!("{}", 1);
|
|
|
|
| ^^^^^^^^^^^^^^^ help: replace with: `write!(f, ..)`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::print-in-format-impl` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::print_in_format_impl)]`
|
2022-02-26 13:26:21 +00:00
|
|
|
|
|
|
|
error: use of `println!` in `Debug` impl
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/print_in_format_impl.rs:23:9
|
2022-02-26 13:26:21 +00:00
|
|
|
|
|
|
|
|
LL | println!("{}", 2);
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: replace with: `writeln!(f, ..)`
|
|
|
|
|
|
|
|
error: use of `eprint!` in `Debug` impl
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/print_in_format_impl.rs:25:9
|
2022-02-26 13:26:21 +00:00
|
|
|
|
|
|
|
|
LL | eprint!("{}", 3);
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: replace with: `write!(f, ..)`
|
|
|
|
|
|
|
|
error: use of `eprintln!` in `Debug` impl
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/print_in_format_impl.rs:27:9
|
2022-02-26 13:26:21 +00:00
|
|
|
|
|
|
|
|
LL | eprintln!("{}", 4);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: replace with: `writeln!(f, ..)`
|
|
|
|
|
|
|
|
error: use of `println!` in `Debug` impl
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/print_in_format_impl.rs:30:13
|
2022-02-26 13:26:21 +00:00
|
|
|
|
|
|
|
|
LL | println!("nested");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: replace with: `writeln!(f, ..)`
|
|
|
|
|
|
|
|
error: use of `print!` in `Display` impl
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/print_in_format_impl.rs:44:9
|
2022-02-26 13:26:21 +00:00
|
|
|
|
|
|
|
|
LL | print!("Display");
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: replace with: `write!(f, ..)`
|
|
|
|
|
|
|
|
error: use of `println!` in `Debug` impl
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/print_in_format_impl.rs:55:9
|
2022-02-26 13:26:21 +00:00
|
|
|
|
|
|
|
|
LL | println!("UnnamedFormatter");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `writeln!(..)`
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|