16 lines
188 B
Rust
16 lines
188 B
Rust
//@ 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() {}
|