]> git.lizzy.rs Git - rust.git/blob - tests/ui/explicit_write.stderr
Merge branch 'master' into add-lints-aseert-checks
[rust.git] / tests / ui / explicit_write.stderr
1 error: use of `write!(stdout(), ...).unwrap()`
2   --> $DIR/explicit_write.rs:17:9
3    |
4 LL |         write!(std::io::stdout(), "test").unwrap();
5    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `print!("test")`
6    |
7    = note: `-D clippy::explicit-write` implied by `-D warnings`
8
9 error: use of `write!(stderr(), ...).unwrap()`
10   --> $DIR/explicit_write.rs:18:9
11    |
12 LL |         write!(std::io::stderr(), "test").unwrap();
13    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprint!("test")`
14
15 error: use of `writeln!(stdout(), ...).unwrap()`
16   --> $DIR/explicit_write.rs:19:9
17    |
18 LL |         writeln!(std::io::stdout(), "test").unwrap();
19    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `println!("test")`
20
21 error: use of `writeln!(stderr(), ...).unwrap()`
22   --> $DIR/explicit_write.rs:20:9
23    |
24 LL |         writeln!(std::io::stderr(), "test").unwrap();
25    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("test")`
26
27 error: use of `stdout().write_fmt(...).unwrap()`
28   --> $DIR/explicit_write.rs:21:9
29    |
30 LL |         std::io::stdout().write_fmt(format_args!("test")).unwrap();
31    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `print!("test")`
32
33 error: use of `stderr().write_fmt(...).unwrap()`
34   --> $DIR/explicit_write.rs:22:9
35    |
36 LL |         std::io::stderr().write_fmt(format_args!("test")).unwrap();
37    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprint!("test")`
38
39 error: use of `writeln!(stdout(), ...).unwrap()`
40   --> $DIR/explicit_write.rs:25:9
41    |
42 LL |         writeln!(std::io::stdout(), "test/ntest").unwrap();
43    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `println!("test/ntest")`
44
45 error: use of `writeln!(stderr(), ...).unwrap()`
46   --> $DIR/explicit_write.rs:26:9
47    |
48 LL |         writeln!(std::io::stderr(), "test/ntest").unwrap();
49    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("test/ntest")`
50
51 error: aborting due to 8 previous errors
52