Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
test
/
ui
/
consts
/
const_let_refutable.rs
blob: e49d47673912a29c8f678d936ecfb5f85f78ae26 [
file
] [
log
] [
blame
]
fn
main
()
{}
const
fn
slice
(&[
a
,
b
]:
&[
i32
])
->
i32
{
//~^ ERROR refutable pattern in function argument
//~| ERROR loops and conditional expressions are not stable in const fn
a
+
b
}