Movatterモバイル変換


[0]ホーム

URL:


eprintln

std

Macroeprintln 

1.19.0 ·Source
macro_rules! eprintln {    () => { ... };    ($($arg:tt)*) => { ... };}
Expand description

Prints to the standard error, with a newline.

Equivalent to theprintln! macro, except that output goes toio::stderr instead ofio::stdout. Seeprintln! forexample usage.

Useeprintln! only for error and progress messages. Useprintln!instead for the primary output of your program.

See the formatting documentation instd::fmtfor details of the macro argument syntax.

§Panics

Panics if writing toio::stderr fails.

Writing to non-blocking stderr can cause an error, which will leadthis macro to panic.

§Examples

eprintln!("Error: Could not complete task");

[8]ページ先頭

©2009-2026 Movatter.jp