fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
638 B15 linesraw
1error[E0605]: non-primitive cast: `i32` as `!`
2  --> $DIR/coerce-to-bang-cast.rs:4:13
3   |
4LL |     let y = {return; 22} as !;
5   |             ^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
6
7error[E0605]: non-primitive cast: `i32` as `!`
8  --> $DIR/coerce-to-bang-cast.rs:9:13
9   |
10LL |     let y = 22 as !;
11   |             ^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0605`.