Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
ui
/
traits
/
const-traits
/
impl-with-default-fn-fail.rs
blob: 7becb01027d758ef26e485c4291f338204028af4 [
file
] [
edit
]
#![
feature
(
const_trait_impl
)]
const
trait
Tr
{
fn
req
(&
self
);
fn
default
()
{}
}
struct
S
;
impl
const
Tr
for
u16
{
fn
default
()
{}
}
//~^^ ERROR not all trait items implemented
fn
main
()
{}