Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
const-for-feature-gate.rs
blob: c834046c5b07f73174ce141edebb801bf91c5580 [
file
] [
log
] [
blame
]
// gate-test-const_for
const
_
:
()
=
{
for
_ in
0.
.
5
{}
//~^ error: `for` is not allowed in a `const`
//~| ERROR: cannot convert
//~| ERROR: cannot call
//~| ERROR: mutable references
};
fn
main
()
{}