rust/tests/ui/cast/issue-10991.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
106 B
Rust
Raw Normal View History

fn main() {
let nil = ();
2017-06-09 15:04:29 -05:00
let _t = nil as usize; //~ ERROR: non-primitive cast: `()` as `usize`
}