2018-11-23 01:18:23 -06:00
|
|
|
error: use of `write!(stdout(), ...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:23:9
|
2017-10-12 03:33:00 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | write!(std::io::stdout(), "test").unwrap();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `print!("test")`
|
2017-10-12 03:33:00 -05:00
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: `-D clippy::explicit-write` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::explicit_write)]`
|
2017-10-12 03:33:00 -05:00
|
|
|
|
2018-11-23 01:18:23 -06:00
|
|
|
error: use of `write!(stderr(), ...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:24:9
|
2017-10-12 03:33:00 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | write!(std::io::stderr(), "test").unwrap();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprint!("test")`
|
2017-10-12 03:33:00 -05:00
|
|
|
|
2018-11-23 01:18:23 -06:00
|
|
|
error: use of `writeln!(stdout(), ...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:25:9
|
2017-10-12 03:33:00 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | writeln!(std::io::stdout(), "test").unwrap();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `println!("test")`
|
2017-10-12 03:33:00 -05:00
|
|
|
|
2018-11-23 01:18:23 -06:00
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:26:9
|
2017-10-12 03:33:00 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | writeln!(std::io::stderr(), "test").unwrap();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("test")`
|
2017-10-12 03:33:00 -05:00
|
|
|
|
2018-11-23 01:18:23 -06:00
|
|
|
error: use of `stdout().write_fmt(...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:27:9
|
2017-10-12 03:33:00 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | std::io::stdout().write_fmt(format_args!("test")).unwrap();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `print!("test")`
|
2017-10-12 03:33:00 -05:00
|
|
|
|
2018-11-23 01:18:23 -06:00
|
|
|
error: use of `stderr().write_fmt(...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:28:9
|
2018-11-23 01:18:23 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | std::io::stderr().write_fmt(format_args!("test")).unwrap();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprint!("test")`
|
2018-11-23 01:18:23 -06:00
|
|
|
|
|
|
|
error: use of `writeln!(stdout(), ...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:31:9
|
2018-11-23 01:18:23 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | writeln!(std::io::stdout(), "test\ntest").unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `println!("test\ntest")`
|
2018-11-23 01:18:23 -06:00
|
|
|
|
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:32:9
|
2017-10-12 03:33:00 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | writeln!(std::io::stderr(), "test\ntest").unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("test\ntest")`
|
2017-10-12 03:33:00 -05:00
|
|
|
|
2022-02-10 11:40:06 -06:00
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:35:9
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
|
LL | writeln!(std::io::stderr(), "with {}", value).unwrap();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("with {}", value)`
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:36:9
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
|
LL | writeln!(std::io::stderr(), "with {} {}", 2, value).unwrap();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("with {} {}", 2, value)`
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:37:9
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
|
LL | writeln!(std::io::stderr(), "with {value}").unwrap();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("with {value}")`
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:38:9
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
|
LL | writeln!(std::io::stderr(), "macro arg {}", one!()).unwrap();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("macro arg {}", one!())`
|
2022-02-10 11:40:06 -06:00
|
|
|
|
2022-09-21 12:02:37 -05:00
|
|
|
error: use of `writeln!(stderr(), ...).unwrap()`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/explicit_write.rs:40:9
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
|
|
|
LL | writeln!(std::io::stderr(), "{:w$}", value, w = width).unwrap();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("{:w$}", value, w = width)`
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
|
|
error: aborting due to 13 previous errors
|
2018-01-16 10:06:27 -06:00
|
|
|
|