Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
72968e519834213d69989271fd6dfb2cdc64493c
/
.
/
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
}
}