Skip to main content

test_main_env_args

Function test_main_env_args 

Source
pub fn test_main_env_args(tests: &[&TestDescAndFn])
🔬This is a nightly-only experimental API. (test)
Expand description

A variant that takes the arguments from the command line. Exits the process if there was an error, returns on success.

This is the entry point for the main function generated by rustc --test when panic=unwind.