about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/print_in_format_impl.stderr
blob: 91d6ce953849ee68b9b5e839231dc32c96b8a081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
error: use of `print!` in `Debug` impl
  --> tests/ui/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`
   = help: to override `-D warnings` add `#[allow(clippy::print_in_format_impl)]`

error: use of `println!` in `Debug` impl
  --> tests/ui/print_in_format_impl.rs:23:9
   |
LL |         println!("{}", 2);
   |         ^^^^^^^^^^^^^^^^^ help: replace with: `writeln!(f, ..)`

error: use of `eprint!` in `Debug` impl
  --> tests/ui/print_in_format_impl.rs:26:9
   |
LL |         eprint!("{}", 3);
   |         ^^^^^^^^^^^^^^^^ help: replace with: `write!(f, ..)`

error: use of `eprintln!` in `Debug` impl
  --> tests/ui/print_in_format_impl.rs:29:9
   |
LL |         eprintln!("{}", 4);
   |         ^^^^^^^^^^^^^^^^^^ help: replace with: `writeln!(f, ..)`

error: use of `println!` in `Debug` impl
  --> tests/ui/print_in_format_impl.rs:33:13
   |
LL |             println!("nested");
   |             ^^^^^^^^^^^^^^^^^^ help: replace with: `writeln!(f, ..)`

error: use of `print!` in `Display` impl
  --> tests/ui/print_in_format_impl.rs:48:9
   |
LL |         print!("Display");
   |         ^^^^^^^^^^^^^^^^^ help: replace with: `write!(f, ..)`

error: use of `println!` in `Debug` impl
  --> tests/ui/print_in_format_impl.rs:60:9
   |
LL |         println!("UnnamedFormatter");
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `writeln!(..)`

error: aborting due to 7 previous errors