rust/tests/ui/explicit_write.stderr

53 lines
2.1 KiB
Plaintext
Raw Normal View History

2018-11-23 15:18:23 +08:00
error: use of `write!(stdout(), ...).unwrap()`
2019-01-13 19:22:59 +08:00
--> $DIR/explicit_write.rs:17:9
2017-10-12 16:33:00 +08:00
|
2018-12-27 23:57:55 +08:00
LL | write!(std::io::stdout(), "test").unwrap();
2018-11-23 15:18:23 +08:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `print!("test")`
2017-10-12 16:33:00 +08:00
|
= note: `-D clippy::explicit-write` implied by `-D warnings`
2017-10-12 16:33:00 +08:00
2018-11-23 15:18:23 +08:00
error: use of `write!(stderr(), ...).unwrap()`
2019-01-13 19:22:59 +08:00
--> $DIR/explicit_write.rs:18:9
2017-10-12 16:33:00 +08:00
|
2018-12-27 23:57:55 +08:00
LL | write!(std::io::stderr(), "test").unwrap();
2018-11-23 15:18:23 +08:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprint!("test")`
2017-10-12 16:33:00 +08:00
2018-11-23 15:18:23 +08:00
error: use of `writeln!(stdout(), ...).unwrap()`
2019-01-13 19:22:59 +08:00
--> $DIR/explicit_write.rs:19:9
2017-10-12 16:33:00 +08:00
|
2018-12-27 23:57:55 +08:00
LL | writeln!(std::io::stdout(), "test").unwrap();
2018-11-23 15:18:23 +08:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `println!("test")`
2017-10-12 16:33:00 +08:00
2018-11-23 15:18:23 +08:00
error: use of `writeln!(stderr(), ...).unwrap()`
2019-01-13 19:22:59 +08:00
--> $DIR/explicit_write.rs:20:9
2017-10-12 16:33:00 +08:00
|
2018-12-27 23:57:55 +08:00
LL | writeln!(std::io::stderr(), "test").unwrap();
2018-11-23 15:18:23 +08:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("test")`
2017-10-12 16:33:00 +08:00
2018-11-23 15:18:23 +08:00
error: use of `stdout().write_fmt(...).unwrap()`
2019-01-13 19:22:59 +08:00
--> $DIR/explicit_write.rs:21:9
2017-10-12 16:33:00 +08:00
|
2018-12-27 23:57:55 +08:00
LL | std::io::stdout().write_fmt(format_args!("test")).unwrap();
2018-11-23 15:18:23 +08:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `print!("test")`
2017-10-12 16:33:00 +08:00
2018-11-23 15:18:23 +08:00
error: use of `stderr().write_fmt(...).unwrap()`
2019-01-13 19:22:59 +08:00
--> $DIR/explicit_write.rs:22:9
2018-11-23 15:18:23 +08:00
|
2018-12-27 23:57:55 +08:00
LL | std::io::stderr().write_fmt(format_args!("test")).unwrap();
2018-11-23 15:18:23 +08:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprint!("test")`
error: use of `writeln!(stdout(), ...).unwrap()`
2019-01-13 19:22:59 +08:00
--> $DIR/explicit_write.rs:25:9
2018-11-23 15:18:23 +08:00
|
2018-12-27 23:57:55 +08:00
LL | writeln!(std::io::stdout(), "test/ntest").unwrap();
2018-11-23 15:18:23 +08:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `println!("test/ntest")`
error: use of `writeln!(stderr(), ...).unwrap()`
2019-01-13 19:22:59 +08:00
--> $DIR/explicit_write.rs:26:9
2017-10-12 16:33:00 +08:00
|
2018-12-27 23:57:55 +08:00
LL | writeln!(std::io::stderr(), "test/ntest").unwrap();
2018-11-23 15:18:23 +08:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("test/ntest")`
2017-10-12 16:33:00 +08:00
2018-11-23 15:18:23 +08:00
error: aborting due to 8 previous errors
2018-01-17 00:06:27 +08:00