2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2019-06-12 09:56:51 -05:00
|
|
|
// error-pattern:returned Box<dyn Error> from main()
|
2018-04-05 08:50:48 -05:00
|
|
|
// failure-status: 1
|
2020-05-07 10:39:02 -05:00
|
|
|
// ignore-emscripten no processes
|
2018-04-05 08:50:48 -05: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()")))
|
|
|
|
}
|