rust-clippy/tests/ui/explicit_write.stderr

41 lines
1.6 KiB
Text
Raw Normal View History

2017-10-12 08:53:20 +00:00
error: use of `write!(stdout(), ...).unwrap()`. Consider using `print!` instead
--> $DIR/explicit_write.rs:16:9
2017-10-12 08:33:00 +00:00
|
16 | write!(std::io::stdout(), "test").unwrap();
2017-10-12 08:53:20 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2017-10-12 08:33:00 +00:00
|
= note: `-D explicit-write` implied by `-D warnings`
2017-10-12 08:33:00 +00:00
2017-10-12 08:53:20 +00:00
error: use of `write!(stderr(), ...).unwrap()`. Consider using `eprint!` instead
--> $DIR/explicit_write.rs:17:9
2017-10-12 08:33:00 +00:00
|
17 | write!(std::io::stderr(), "test").unwrap();
2017-10-12 08:53:20 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2017-10-12 08:33:00 +00:00
2017-10-12 08:53:20 +00:00
error: use of `writeln!(stdout(), ...).unwrap()`. Consider using `println!` instead
--> $DIR/explicit_write.rs:18:9
2017-10-12 08:33:00 +00:00
|
18 | writeln!(std::io::stdout(), "test").unwrap();
2017-10-12 08:53:20 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2017-10-12 08:33:00 +00:00
2017-10-12 08:53:20 +00:00
error: use of `writeln!(stderr(), ...).unwrap()`. Consider using `eprintln!` instead
--> $DIR/explicit_write.rs:19:9
2017-10-12 08:33:00 +00:00
|
19 | writeln!(std::io::stderr(), "test").unwrap();
2017-10-12 08:53:20 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2017-10-12 08:33:00 +00:00
2017-10-12 08:53:20 +00:00
error: use of `stdout().write_fmt(...).unwrap()`. Consider using `print!` instead
--> $DIR/explicit_write.rs:20:9
2017-10-12 08:33:00 +00:00
|
20 | std::io::stdout().write_fmt(format_args!("test")).unwrap();
2017-10-12 08:53:20 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2017-10-12 08:33:00 +00:00
2017-10-12 08:53:20 +00:00
error: use of `stderr().write_fmt(...).unwrap()`. Consider using `eprint!` instead
--> $DIR/explicit_write.rs:21:9
2017-10-12 08:33:00 +00:00
|
21 | std::io::stderr().write_fmt(format_args!("test")).unwrap();
2017-10-12 08:53:20 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2017-10-12 08:33:00 +00:00
2018-01-16 16:06:27 +00:00
error: aborting due to 6 previous errors