blob: 1bc10a04c6f1e4ea74046d0d88202e65cb1bd2dd [file]
//! Check that all the derives have spans that point to the fields,
//! rather than the #[derive(Debug)] line.
struct Error;
#[derive(Debug)]
enum EnumStructVariant {
A {
x: Error, //~ ERROR
},
}
#[derive(Debug)]
enum EnumTupleVariant {
A(
Error, //~ ERROR
),
}
#[derive(Debug)]
struct Struct {
x: Error, //~ ERROR
}
#[derive(Debug)]
struct TupleStruct(
Error, //~ ERROR
);
fn main() {}