Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
consts
/
mir_check_nonconst.rs
blob: eede36bd6ed816df662228bb9b85b06b5b8e9159 [
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 function
fn
main
()
{}