serde/test_suite/tests/compiletest.rs

24 lines
751 B
Rust
Raw Normal View History

2017-04-13 19:34:42 -05:00
// Copyright 2017 Serde Developers
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
2017-03-08 23:02:15 -06:00
#![cfg(feature = "unstable")]
extern crate compiletest_rs as compiletest;
#[test]
2016-07-04 16:49:50 -05:00
fn compile_fail() {
2018-11-24 17:35:49 -06:00
let config = compiletest::Config {
mode: compiletest::common::Mode::CompileFail,
src_base: std::path::PathBuf::from("tests/compile-fail"),
target_rustcflags: Some("-L deps/target/debug/deps".to_owned()),
..Default::default()
};
compiletest::run_tests(&config);
}