2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2019-06-12 09:56:51 -05:00
|
|
|
// error-pattern:returned Box<Error> from main()
|
2018-02-11 18:38:26 -06:00
|
|
|
// failure-status: 1
|
2020-05-07 10:39:02 -05:00
|
|
|
// ignore-emscripten no processes
|
2018-02-11 18:38:26 -06:00
|
|
|
|
|
|
|
use std::io::{Error, ErrorKind};
|
2017-12-03 15:16:24 -06:00
|
|
|
|
2018-02-11 18:38:26 -06:00
|
|
|
fn main() -> Result<(), Box<Error>> {
|
|
|
|
Err(Box::new(Error::new(ErrorKind::Other, "returned Box<Error> from main()")))
|
2017-12-03 15:16:24 -06:00
|
|
|
}
|