Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
5f62a35bae82dd0c5ff9dedd83fe2cfd74b67792
/
.
/
tests
/
ui
/
consts
/
invalid-inline-const-in-match-arm.rs
blob: 0654fd82fbc59b346028f7b3be78f2799c6caf58 [
file
] [
log
] [
blame
]
#![
feature
(
inline_const_pat
)]
fn
main
()
{
match
()
{
const
{
(||
{})()
}
=>
{}
//~^ ERROR cannot call non-const closure in constants
}
}