2018-12-31 20:28:39 -06:00
|
|
|
#![cfg(feature = "compiletest")]
|
2017-02-24 17:32:13 -06:00
|
|
|
|
2016-01-18 14:39:46 -06:00
|
|
|
extern crate compiletest_rs as compiletest;
|
|
|
|
|
|
|
|
#[test]
|
2018-11-24 17:37:35 -06:00
|
|
|
fn ui() {
|
2018-11-24 17:35:49 -06:00
|
|
|
let config = 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 20:36:59 -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()
|
|
|
|
};
|
|
|
|
|
|
|
|
compiletest::run_tests(&config);
|
2016-01-18 14:39:46 -06:00
|
|
|
}
|