about summary refs log tree commit diff
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/specialization/default-keyword.rs
blob: bc45a70777ca51316e3bb5489e85b9f6ddce2556 (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() {}