Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
issue-43105.rs
blob: 20b78d64209e10b552c7ce6d167718b70db608c8 [
file
] [
log
] [
blame
] [
edit
]
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
_
=>
unimplemented
!(),
}
}