Sign in
android
/
toolchain
/
rustc
/
87880447cc5437c45a3562596a9766d9797e7318
/
.
/
tests
/
ui
/
consts
/
invalid-inline-const-in-match-arm.rs
blob: 4d2d8fb1303ce0fe877794a915417844c424b6f4 [
file
] [
log
] [
blame
]
#![
allow
(
incomplete_features
)]
#![
feature
(
inline_const_pat
)]
fn
main
()
{
match
()
{
const
{
(||
{})()
}
=>
{}
//~^ ERROR cannot call non-const closure in constants
}
}