This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
14e59bb317
rust
/
tests
/
ui
/
consts
/
issue-29914-2.rs
7 lines
100 B
Rust
Raw
Normal View
History
Unescape
Escape
Add `// run-pass` annotations to all the tests under `ui/run-pass/`. (I may have accidentally added it to some auxilliary crates as well; my emacs-macro-based methodology was pretty crude.)
2018-08-30 14:18:55 +02:00
// run-pass
Fix ICE on using result of index on a constant to index into a constant The issue was that the const evaluator was returning an error because the feature flag const_indexing wasn't turned on. The error was then reported as a bug. Fixes #29914
2016-02-13 15:12:58 -05:00
const
ARR
:
[
usize
;
5
]
=
[
5
,
4
,
3
,
2
,
1
]
;
fn
main
(
)
{
assert_eq!
(
3
,
ARR
[
ARR
[
3
]
]
)
;
}
Copy permalink