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
2
Packages
Projects
Releases
Wiki
Activity
Files
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
rust
/
tests
/
ui
/
indexing
/
index-bot.rs
4 lines
79 B
Rust
Raw
Normal View
History
Unescape
Escape
Add test that `!` cannot be indexed
2014-09-20 00:25:05 -07:00
fn
main
(
)
{
Add E0608
2017-06-09 19:05:14 +02:00
(
return
)
[
0
]
;
//~ ERROR cannot index into a value of type `!`
Add test that `!` cannot be indexed
2014-09-20 00:25:05 -07:00
}
Reference in New Issue
Copy Permalink