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
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 16:14:34 -06:00
// error-pattern:cannot be dereferenced
fn
main
(
)
{
Convert alt to match. Stop parsing alt
2012-08-06 14:34:08 -05:00
match
*
1
{
Switch alts to use arrows
2012-08-03 21:59:04 -05:00
_
=
>
{
fail
;
}
Improve a type error message (avoid the word 'non-dereferenceable')
2012-03-07 16:14:34 -06:00
}
}
Reference in New Issue
Copy Permalink