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