rust/tests/ui/rfcs/rfc-2632-const-trait-impl/impl-with-default-fn-fail.rs

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

18 lines
216 B
Rust
Raw Normal View History

#![feature(const_trait_impl)]
#[const_trait]
trait Tr {
fn req(&self);
2021-07-04 04:24:20 +00:00
fn default() {}
}
struct S;
2021-07-04 04:24:20 +00:00
impl const Tr for u16 {
fn default() {}
} //~^^ ERROR not all trait items implemented
2021-07-04 04:24:20 +00:00
fn main() {}