1 2 3 4 5 6 7 8 9 10 11
//! Compile-fail / pass UI tests for derive diagnostics (nested JsonView, etc.). //! //! Requires default `derive` feature. Refresh expected stderr with: //! `TRYBUILD=overwrite cargo test --test ui` #[test] fn ui_nested_jsonview() { let t = trybuild::TestCases::new(); t.compile_fail("tests/ui/nested_missing_jsonview.rs"); t.pass("tests/ui/nested_ok.rs"); }