This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
2
Packages
Projects
Releases
Wiki
Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust
/
tests
/
ui
/
rfcs
/
rfc-1937-termination-trait
/
termination-trait-for-exitcode.rs
8 lines
91 B
Rust
Raw
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 22:16:24 +01: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 00:31:33 -08:00
use
std
::
process
::
ExitCode
;
fn
main
(
)
->
ExitCode
{
Put some thought and documentation effort into process::ExitCode
2018-02-27 10:31:17 -08: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 22:16:24 +01:00
}
Reference in New Issue
Copy Permalink