fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

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