summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2632-const-trait-impl/specialization/default-keyword.rs
blob: 2aac0a2b4d11183d4b6dca6bd9b0df37b4c92204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass

#![feature(const_trait_impl)]
#![feature(min_specialization)]

#[const_trait]
trait Foo {
    fn foo();
}

impl const Foo for u32 {
    default fn foo() {}
}

fn main() {}