summaryrefslogtreecommitdiffstats
path: root/tests/ui/cast/cast-from-nil.rs
blob: b5ceef76ac20e0f8318077da5798998d909eb93c (plain)
1
2
// error-pattern: non-primitive cast: `()` as `u32`
fn main() { let u = (assert!(true) as u32); }