facet 0.44.5

Reflection for Rust: introspect types at compile time with metadata for serialization, pretty-printing, CLIs, and more
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Test that default attribute errors point to the correct span.
//!
//! The error should point to `MissingDefault::create()`, not the macro expansion site.

use facet::Facet;

#[derive(Facet)]
struct TestDefault {
    #[facet(default = MissingDefault::create())]
    value: i32,
}

fn main() {}