Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
invalid-inline-const-in-match-arm.rs
blob: 4fe4b0d33c8864c80aa7bbae3e06cc1d196e0fa2 [
file
] [
log
] [
blame
] [
edit
]
#![
feature
(
inline_const_pat
)]
fn
main
()
{
match
()
{
const
{
(||
{})()
}
=>
{}
//~^ ERROR cannot call non-const closure in constants
//~| ERROR could not evaluate constant pattern
}
}