File: ui.rs

package info (click to toggle)
rust-test-casing 0.1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 300 kB
  • sloc: makefile: 2
file content (19 lines) | stat: -rw-r--r-- 567 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! UI tests for various compilation failures.

#[test]
fn ui() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui/bug_in_iter_expr.rs");
    t.compile_fail("tests/ui/fn_without_args.rs");
    t.compile_fail("tests/ui/invalid_mapping.rs");
    t.compile_fail("tests/ui/fn_with_too_many_args.rs");
    t.compile_fail("tests/ui/unsupported_item.rs");
    t.compile_fail("tests/ui/invalid_case_count.rs");
}

#[cfg(feature = "nightly")]
#[test]
fn nightly_ui() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui-nightly/*.rs");
}