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