rust/tests/ui/rfcs/rfc-2632-const-trait-impl/specialization/default-keyword.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
187 B
Rust
Raw Normal View History

// 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() {}