]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/print_in_format_impl.stderr
Rollup merge of #96941 - nannany:master, r=lcnr,JohnTitor
[rust.git] / src / tools / clippy / tests / ui / print_in_format_impl.stderr
1 error: use of `print!` in `Debug` impl
2   --> $DIR/print_in_format_impl.rs:20:9
3    |
4 LL |         print!("{}", 1);
5    |         ^^^^^^^^^^^^^^^ help: replace with: `write!(f, ..)`
6    |
7    = note: `-D clippy::print-in-format-impl` implied by `-D warnings`
8
9 error: use of `println!` in `Debug` impl
10   --> $DIR/print_in_format_impl.rs:21:9
11    |
12 LL |         println!("{}", 2);
13    |         ^^^^^^^^^^^^^^^^^ help: replace with: `writeln!(f, ..)`
14
15 error: use of `eprint!` in `Debug` impl
16   --> $DIR/print_in_format_impl.rs:22:9
17    |
18 LL |         eprint!("{}", 3);
19    |         ^^^^^^^^^^^^^^^^ help: replace with: `write!(f, ..)`
20
21 error: use of `eprintln!` in `Debug` impl
22   --> $DIR/print_in_format_impl.rs:23:9
23    |
24 LL |         eprintln!("{}", 4);
25    |         ^^^^^^^^^^^^^^^^^^ help: replace with: `writeln!(f, ..)`
26
27 error: use of `println!` in `Debug` impl
28   --> $DIR/print_in_format_impl.rs:25:13
29    |
30 LL |             println!("nested");
31    |             ^^^^^^^^^^^^^^^^^^ help: replace with: `writeln!(f, ..)`
32
33 error: use of `print!` in `Display` impl
34   --> $DIR/print_in_format_impl.rs:38:9
35    |
36 LL |         print!("Display");
37    |         ^^^^^^^^^^^^^^^^^ help: replace with: `write!(f, ..)`
38
39 error: use of `println!` in `Debug` impl
40   --> $DIR/print_in_format_impl.rs:48:9
41    |
42 LL |         println!("UnnamedFormatter");
43    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `writeln!(..)`
44
45 error: aborting due to 7 previous errors
46