File: compile-test.rs

package info (click to toggle)
rust-derivative 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 724 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
extern crate trybuild;

#[test]
#[ignore]
fn compile_test() {
    let t = trybuild::TestCases::new();
    let pattern = std::env::var("DERIVATIVE_TEST_FILTER").unwrap_or_else(|_| String::from("*.rs"));
    t.compile_fail(format!("tests/compile-fail/{}", pattern));
}