1 | #[test] |
2 | fn compile_fail_full() { |
3 | let t = trybuild::TestCases::new(); |
4 | |
5 | #[cfg (feature = "full" )] |
6 | t.pass("tests/pass/forward_args_and_output.rs" ); |
7 | |
8 | #[cfg (feature = "full" )] |
9 | t.pass("tests/pass/macros_main_return.rs" ); |
10 | |
11 | #[cfg (feature = "full" )] |
12 | t.pass("tests/pass/macros_main_loop.rs" ); |
13 | |
14 | #[cfg (feature = "full" )] |
15 | t.compile_fail("tests/fail/macros_invalid_input.rs" ); |
16 | |
17 | #[cfg (feature = "full" )] |
18 | t.compile_fail("tests/fail/macros_dead_code.rs" ); |
19 | |
20 | #[cfg (feature = "full" )] |
21 | t.compile_fail("tests/fail/macros_type_mismatch.rs" ); |
22 | |
23 | #[cfg (all(feature = "rt" , not(feature = "full" )))] |
24 | t.compile_fail("tests/fail/macros_core_no_default.rs" ); |
25 | |
26 | drop(t); |
27 | } |
28 | |