2022-05-21 14:53:40 +09:00
|
|
|
// `error_try_builds` is not really a feature.
|
|
|
|
// This is used just to make the test files part of the crate so that they can get included by things
|
|
|
|
// like `cargo fmt` for example, BUT not be part of compilation when running `cargo test`.
|
|
|
|
#[cfg(feature = "error_try_builds")]
|
|
|
|
mod build_error_tests;
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn run_build_error_tests() {
|
|
|
|
let t = trybuild::TestCases::new();
|
|
|
|
t.compile_fail("tests/build_error_tests/ts_arg_type_*.rs");
|
2024-04-18 01:14:00 +09:00
|
|
|
t.compile_fail("tests/build_error_tests/fn_outside_impl_factory.rs");
|
2022-05-21 14:53:40 +09:00
|
|
|
}
|