rust/tests/ui/explicit_write.stderr

41 lines
1.6 KiB
Plaintext
Raw Normal View History

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