mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
17 lines
268 B
Rust
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() {}
|