Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
consts
/
issue-43105.rs
blob: cac12b90970fe78b3f1ad19a1cb46c34f061ab00 [
file
]
fn
xyz
()
->
u8
{
42
}
const
NUM
:
u8
=
xyz
();
//~^ ERROR cannot call non-const fn
fn
main
()
{
match
1
{
NUM
=>
unimplemented
!(),
//~^ ERROR could not evaluate constant pattern
//~| ERROR could not evaluate constant pattern
_
=>
unimplemented
!(),
}
}