1#![cfg(not(miri))]
2#![cfg(not(careful))]
3#![warn(rust_2018_idioms, single_use_lifetimes)]
4
5use std::env;
6
7#[rustversion::attr(not(nightly), ignore)]
8#[test]
9fn ui() {
10 if env::var_os("CI").is_none() {
11 env::set_var("TRYBUILD", "overwrite");
12 }
13
14 let t = trybuild::TestCases::new();
15 t.compile_fail("tests/ui/**/*.rs");
16 t.pass("tests/run-pass/**/*.rs");
17}
18