This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Issues
Pull requests
Activity
12c32e944d
rust
/
src
/
test
/
compile-fail
/
deref-non-pointer.rs
6 lines
91 B
Rust
Raw
Normal View
History
Unescape
Escape
Improve a type error message (avoid the word 'non-dereferenceable')
2012-03-07 14:14:34 -08:00
// error-pattern:cannot be dereferenced
fn
main
(
)
{
Convert alt to match. Stop parsing alt
2012-08-06 12:34:08 -07:00
match
*
1
{
Switch alts to use arrows
2012-08-03 19:59:04 -07:00
_
=
>
{
fail
;
}
Improve a type error message (avoid the word 'non-dereferenceable')
2012-03-07 14:14:34 -08:00
}
}
Reference in a new issue
Copy permalink