buffa-reflect-derive 0.2.0

Proc-macro derive for buffa-reflect's ReflectMessage trait.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `trybuild`-driven UI tests for the four documented diagnostic shapes.
//!
//! These tests are inherently brittle to compiler-error-message wording.
//! Run with `TRYBUILD=overwrite cargo test -p buffa-reflect-derive ui`
//! after upgrading toolchains.

#[test]
fn ui_should_report_recognizable_diagnostics() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui/missing_binding.rs");
    t.compile_fail("tests/ui/both_bindings.rs");
    t.compile_fail("tests/ui/missing_message_name.rs");
    t.compile_fail("tests/ui/bad_attribute_shape.rs");
}