use std::env;
use trybuild;
#[test]
fn ui() {
env::set_var("DENO_TRYBUILD", "1");
let t = trybuild::TestCases::new();
t.compile_fail("tests/compile_fail/boxed_local.rs");
t.compile_fail("tests/compile_fail/handle_scope_escape_lifetime.rs");
t.compile_fail("tests/compile_fail/handle_scope_lifetime_1.rs");
t.compile_fail("tests/compile_fail/handle_scope_lifetime_2.rs");
t.compile_fail("tests/compile_fail/handle_scope_lifetime_3.rs");
t.compile_fail("tests/compile_fail/handle_scope_lifetime_4.rs");
t.compile_fail("tests/compile_fail/try_catch_exception_lifetime.rs");
t.compile_fail("tests/compile_fail/try_catch_message_lifetime.rs");
if cfg!(not(windows)) || env::var("GITHUB_ACTION").is_err() {
t.compile_fail("tests/compile_fail/handle_scope_escape_to_nowhere.rs");
}
}