2019-11-22 14:38:49 -08:00
|
|
|
#[test]
|
2020-10-12 13:44:54 -04:00
|
|
|
fn compile_fail_full() {
|
2019-11-22 14:38:49 -08:00
|
|
|
let t = trybuild::TestCases::new();
|
|
|
|
|
|
2021-04-11 20:39:05 +02:00
|
|
|
#[cfg(feature = "full")]
|
|
|
|
|
t.pass("tests/pass/forward_args_and_output.rs");
|
|
|
|
|
|
2021-08-25 20:59:41 +03:00
|
|
|
#[cfg(feature = "full")]
|
|
|
|
|
t.pass("tests/pass/macros_main_return.rs");
|
|
|
|
|
|
|
|
|
|
#[cfg(feature = "full")]
|
|
|
|
|
t.pass("tests/pass/macros_main_loop.rs");
|
|
|
|
|
|
2019-11-22 14:38:49 -08:00
|
|
|
#[cfg(feature = "full")]
|
|
|
|
|
t.compile_fail("tests/fail/macros_invalid_input.rs");
|
|
|
|
|
|
2021-05-09 18:58:05 +09:00
|
|
|
#[cfg(feature = "full")]
|
|
|
|
|
t.compile_fail("tests/fail/macros_dead_code.rs");
|
|
|
|
|
|
|
|
|
|
#[cfg(feature = "full")]
|
|
|
|
|
t.compile_fail("tests/fail/macros_type_mismatch.rs");
|
|
|
|
|
|
2020-10-13 06:13:23 +09:00
|
|
|
#[cfg(all(feature = "rt", not(feature = "full")))]
|
2020-10-12 13:44:54 -04:00
|
|
|
t.compile_fail("tests/fail/macros_core_no_default.rs");
|
|
|
|
|
|
2019-11-22 14:38:49 -08:00
|
|
|
drop(t);
|
|
|
|
|
}
|