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