File: compile.rs

package info (click to toggle)
rust-try-match 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 236 kB
  • sloc: makefile: 2
file content (24 lines) | stat: -rw-r--r-- 684 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#[test]
#[cfg(feature = "implicit_map")]
fn fail_ident_disambiguation() {
    trybuild::TestCases::new().compile_fail("tests/compile-fail/ident_disambiguation/**/*.rs");
}

#[test]
#[cfg(feature = "implicit_map")]
fn fail_tuple_captures() {
    trybuild::TestCases::new().compile_fail("tests/compile-fail/tuple_captures/**/*.rs");
}

#[test]
#[cfg(not(feature = "implicit_map"))]
fn fail_no_implicit_map() {
    trybuild::TestCases::new().compile_fail("tests/compile-fail/no_implicit_map/**/*.rs");
}

#[test]
#[cfg(feature = "implicit_map")]
#[cfg(not(feature = "unstable"))]
fn fail_reserved() {
    trybuild::TestCases::new().compile_fail("tests/compile-fail/reserved/**/*.rs");
}