mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 15:39:20 +00:00
13 lines
188 B
Rust
13 lines
188 B
Rust
#![feature(never_type)]
|
|
|
|
fn cast_a() {
|
|
let y = {return; 22} as !;
|
|
//~^ ERROR non-primitive cast
|
|
}
|
|
|
|
fn cast_b() {
|
|
let y = 22 as !; //~ ERROR non-primitive cast
|
|
}
|
|
|
|
fn main() { }
|