This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
a7597a1526
rust
/
tests
/
run-pass-valgrind
/
cleanup-stdin.rs
6 lines
106 B
Rust
Raw
Normal View
History
Unescape
Escape
Free stdin on exit
2014-12-15 01:36:50 -06:00
fn
main
(
)
{
std: Implement stdio for `std::io` This is an implementation of RFC 899 and adds stdio functionality to the new `std::io` module. Details of the API can be found on the RFC, but from a high level: * `io::{stdin, stdout, stderr}` constructors are now available. There are also `*_raw` variants for unbuffered and unlocked access. * All handles are globally shared (excluding raw variants). * The stderr handle is no longer buffered. * All handles can be explicitly locked (excluding the raw variants). The `print!` and `println!` machinery has not yet been hooked up to these streams just yet. The `std::fmt::output` module has also not yet been implemented as part of this commit.
2015-02-25 01:27:20 -06:00
let
_
=
std
::
io
::
stdin
(
)
;
test: Fix fallout in run-pass tests
2015-04-10 13:12:43 -05:00
let
_
=
std
::
io
::
stdout
(
)
;
let
_
=
std
::
io
::
stderr
(
)
;
Free stdin on exit
2014-12-15 01:36:50 -06:00
}
Reference in New Issue
Copy Permalink