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