2018-12-31 20:28:39 -06:00
|
|
|
#![cfg(feature = "compiletest")]
|
2017-02-24 17:32:13 -06:00
|
|
|
|
2018-12-31 20:44:24 -06:00
|
|
|
use compiletest_rs as compiletest;
|
2016-01-18 14:39:46 -06:00
|
|
|
|
|
|
|
#[test]
|
2018-11-24 17:37:35 -06:00
|
|
|
fn ui() {
|
2019-01-12 18:22:23 -06:00
|
|
|
compiletest::run_tests(&compiletest::Config {
|
2018-11-24 17:37:35 -06:00
|
|
|
mode: compiletest::common::Mode::Ui,
|
|
|
|
src_base: std::path::PathBuf::from("tests/ui"),
|
2018-12-31 21:04:56 -06:00
|
|
|
target_rustcflags: Some(String::from(
|
|
|
|
"\
|
|
|
|
--edition=2018 \
|
|
|
|
-L deps/target/debug/deps \
|
|
|
|
-Z unstable-options \
|
|
|
|
--extern serde_derive \
|
|
|
|
",
|
|
|
|
)),
|
2018-11-24 17:35:49 -06:00
|
|
|
..Default::default()
|
2019-01-12 18:22:23 -06:00
|
|
|
});
|
2016-01-18 14:39:46 -06:00
|
|
|
}
|