mirror of
https://git.proxmox.com/git/rustc
synced 2026-03-27 21:58:05 +00:00
21 lines
508 B
Rust
21 lines
508 B
Rust
fn main() {
|
|
println!("stdout:");
|
|
println!(
|
|
" choice: {:?}",
|
|
anstream::AutoStream::choice(&std::io::stdout())
|
|
);
|
|
println!(
|
|
" choice: {:?}",
|
|
anstream::AutoStream::auto(std::io::stdout()).current_choice()
|
|
);
|
|
println!("stderr:");
|
|
println!(
|
|
" choice: {:?}",
|
|
anstream::AutoStream::choice(&std::io::stderr())
|
|
);
|
|
println!(
|
|
" choice: {:?}",
|
|
anstream::AutoStream::auto(std::io::stderr()).current_choice()
|
|
);
|
|
}
|