Sign in
android
/
toolchain
/
rustc
/
89a0a0cd9cbd0a0138a09bd877bbc73859a8c330
/
.
/
src
/
test
/
ui
/
consts
/
issue-43105.rs
blob: cac12b90970fe78b3f1ad19a1cb46c34f061ab00 [
file
] [
log
] [
blame
]
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
!(),
}
}