2022-03-24 19:24:40 -05:00
|
|
|
// check-pass
|
|
|
|
|
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
#![feature(min_specialization)]
|
|
|
|
|
2022-11-05 23:12:57 -05:00
|
|
|
#[const_trait]
|
2022-03-24 19:24:40 -05:00
|
|
|
trait Foo {
|
|
|
|
fn foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
impl const Foo for u32 {
|
|
|
|
default fn foo() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|