]> git.proxmox.com Git - rustc.git/blob - vendor/pin-project-lite/tests/compiletest.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / vendor / pin-project-lite / tests / compiletest.rs
1 #![cfg(not(miri))]
2 #![warn(rust_2018_idioms, single_use_lifetimes)]
3
4 use std::env;
5
6 #[rustversion::attr(before(2020-12-03), ignore)] // Note: This date is commit-date and the day before the toolchain date.
7 #[test]
8 fn ui() {
9 if env::var_os("CI").is_none() {
10 env::set_var("TRYBUILD", "overwrite");
11 }
12
13 let t = trybuild::TestCases::new();
14 t.compile_fail("tests/ui/*/*.rs");
15 }