summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-1937-termination-trait/termination-trait-for-result-box-error_err.rs
blob: 6a625fb05e8f833d24bb1c65c6333156685f59aa (plain)
1
2
3
4
5
6
7
8
9
10
// run-fail
// error-pattern:returned Box<Error> from main()
// failure-status: 1
// ignore-emscripten no processes

use std::io::{Error, ErrorKind};

fn main() -> Result<(), Box<Error>> {
    Err(Box::new(Error::new(ErrorKind::Other, "returned Box<Error> from main()")))
}