| 1 | //! UI tests. |
| 2 | //! |
| 3 | //! This is a separate binary from `integration_test.rs` because |
| 4 | //! `integration_test.rs` actually uses the macro under consideration -- it |
| 5 | //! might fail to compile, but we still want to see what the UI tests say. |
| 6 | //! |
| 7 | //! (It might make sense to move integration_test.rs to the daft crate in the |
| 8 | //! future.) |
| 9 | |
| 10 | #[test] |
| 11 | fn ui() { |
| 12 | let t = trybuild::TestCases::new(); |
| 13 | t.pass("tests/fixtures/valid/*.rs"); |
| 14 | t.compile_fail("tests/fixtures/invalid/*.rs"); |
| 15 | } |