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
/
cast-from-nil.rs
2 lines
90 B
Rust
Raw
Normal View
History
Unescape
Escape
Introduce a T_err type for type errors This allows more errors to be non-fatal, as per #1871. I only went through and started changing span_fatal to span_err in check.rs. There are probably more errors that could be made non-fatal. So if you see derived type errors appearing from now on, file a bug! r=graydon Closes #1871
2012-11-16 21:22:48 -06:00
// error-pattern: cast from nil: `()` as `u32`
typeck: Fix for #932
2011-12-04 18:23:10 -06:00
fn
main
(
)
{
let
u
=
(
assert
true
)
as
u32
;
}
Reference in New Issue
Copy Permalink