This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
2d45df3caa
rust
/
tests
/
ui
/
issues
/
issue-40861.rs
7 lines
107 B
Rust
Raw
Normal View
History
Unescape
Escape
Avoid type-checking addition and indexing twice.
2017-03-27 13:52:51 -05:00
fn
f
(
_
:
&
[
f32
]
)
{
}
fn
main
(
)
{
(
)
[
f
(
&
[
1.0
]
)
]
;
Add E0608
2017-06-09 12:05:14 -05:00
//~^ ERROR cannot index into a value of type `()`
Avoid type-checking addition and indexing twice.
2017-03-27 13:52:51 -05:00
}
Reference in New Issue
Copy Permalink