Files
rust/tests/ui/derives/default/derives-span-Default.rs
T
2026-04-22 20:22:40 +00:00

17 lines
268 B
Rust

//! Check that all the derives have spans that point to the fields,
//! rather than the #[derive(Default)] line.
struct Error;
#[derive(Default)]
struct Struct {
x: Error, //~ ERROR
}
#[derive(Default)]
struct TupleStruct(
Error, //~ ERROR
);
fn main() {}