This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-04-28 19:17:43 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
rust
/
tests
/
ui
/
rfcs
/
rfc-1937-termination-trait
/
termination-trait-for-exitcode.rs
8 lines
91 B
Rust
Raw
Permalink
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
Implements RFC 1937: `?` in `main` This is the first part of the RFC 1937 that supports new `Termination` trait in the rust `main` function.
2017-12-03 21:16:24 +00:00
Restrict the Termination impls to simplify stabilization Make a minimal commitment for stabilization. More impls are likely in future, but are not necessary at this time.
2018-02-24 08:31:33 +00:00
use
std
::
process
::
ExitCode
;
fn
main
(
)
->
ExitCode
{
Put some thought and documentation effort into process::ExitCode
2018-02-27 18:31:17 +00:00
ExitCode
::
SUCCESS
Implements RFC 1937: `?` in `main` This is the first part of the RFC 1937 that supports new `Termination` trait in the rust `main` function.
2017-12-03 21:16:24 +00:00
}
Reference in New Issue
Copy Permalink