1 error[E0605]: non-primitive cast: `i32` as `!`
2 --> $DIR/coerce-to-bang-cast.rs:6:13
4 LL | let y = {return; 22} as !;
7 = note: an `as` expression can only be used to convert between primitive types. Consider using the `From` trait
9 error[E0605]: non-primitive cast: `i32` as `!`
10 --> $DIR/coerce-to-bang-cast.rs:11:13
15 = note: an `as` expression can only be used to convert between primitive types. Consider using the `From` trait
17 error: aborting due to 2 previous errors
19 For more information about this error, try `rustc --explain E0605`.