bevy/tools/compile_fail_utils/tests/example.rs
BD103 03395f5df8
Fix compile_fail compile fail (#16805)
# Objective

- Fixes #16802, part of #16801, extracted from #16770.

## Solution

- Fix `compile_fail_utils`'s example test so that it now compiles.
- Bless the results, which were outdated.

## Testing

- `cd tools/compile_fail_utils && cargo check --all-targets`
- `cd tools/compile_fail_utils && cargo test --test example`
2024-12-17 00:01:08 +00:00

11 lines
436 B
Rust

fn main() -> compile_fail_utils::ui_test::Result<()> {
// Run all tests in the tests/example_tests folder.
// If we had more tests we could either call this function
// on everysingle one or use test_multiple and past it an array
// of paths.
//
// Don't forget that when running tests the working directory
// is set to the crate root.
compile_fail_utils::test("example_tests", "tests/example_tests")
}