Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
df59800b0875719b6f661cc191fa35263a29efa3
/
.
/
tests
/
ui
/
error-codes
/
E0015.rs
blob: b0211358d81668cdec050a14ba826125e037fc43 [
file
] [
log
] [
blame
]
fn
create_some
()
->
Option
<
u8
>
{
Some
(
1
)
}
const
FOO
:
Option
<
u8
>
=
create_some
();
//~^ ERROR cannot call non-const fn `create_some` in constants [E0015]
fn
main
()
{}