Sign in
fuchsia
/
third_party
/
rust
/
4bf20b2b558289e9dcffd496890df116f98612c7
/
.
/
tests
/
ui
/
mismatched_types
/
const-fn-in-trait.rs
blob: e04d59c58c22bfa86c4f021c66f6ef21d2a29c77 [
file
] [
log
] [
blame
]
trait
Foo
{
fn
f
()
->
u32
;
const
fn
g
();
//~ ERROR cannot be declared const
}
impl
Foo
for
u32
{
const
fn
f
()
->
u32
{
22
}
//~ ERROR cannot be declared const
fn
g
()
{}
}
fn
main
()
{
}