#![feature(adt_const_params)] #![allow(incomplete_features)] #[derive(PartialEq, Eq)] struct A; struct B; // ok struct C; struct D; //~ ERROR `C` must be annotated with `#[derive(PartialEq, Eq)]` fn main() {}