1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
#[macro_use]
extern crate derive_builder;
// This is a stand-in for any bad crate directive
mod empty {}
#[derive(Builder)]
// It would be nice if the "failed to resolve" errors would identify `"empty"` as the error span,
// but doing so would require rewriting a lot of the code generation to use the crate_root span
// for the full path of the thing being imported, and that doesn't seem worth the code churn.
#[builder(crate = "empty")]
struct BadCrate {
lorem: String,
}
fn main() {}
|