Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
consts
/
mir_check_nonconst.rs
blob: b6f34b922fae51548a3956459853637246e7a67a [
file
] [
log
] [
blame
]
#![
allow
(
dead_code
)]
struct
Foo
{
a
:
u8
}
fn
bar
()
->
Foo
{
Foo
{
a
:
5
}
}
static
foo
:
Foo
=
bar
();
//~^ ERROR cannot call non-const fn
fn
main
()
{}