summaryrefslogtreecommitdiffstats
path: root/tests/ui/enum/suggest-default-attribute.rs
blob: 1d7567e60a57c0a2629875de6c5d8f8e87fad820 (plain)
1
2
3
4
5
6
7
8
pub enum Test { //~ HELP consider adding a derive
    #[default]
    //~^ ERROR cannot find attribute `default` in this scope
    First,
    Second,
}

fn main() {}