This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust
/
tests
/
ui
/
consts
/
issue-29914-2.rs
7 lines
101 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00: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
]
]
)
;
}
Reference in New Issue
Copy Permalink