rust/src/test/compile-fail/cast-to-nil.rs
Tim Chevalier ef833d4101 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-21 12:44:51 -08:00

2 lines
78 B
Rust

// error-pattern: cast to nil: `u32` as `()`
fn main() { let u = 0u32 as (); }