fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0605]: non-primitive cast: `u8` as `Vec<u8>` 2 --> $DIR/E0605.rs:3:5 3 | 4LL | x as Vec<u8>; 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: `*const u8` as `&u8` 8 --> $DIR/E0605.rs:6:5 9 | 10LL | v as &u8; 11 | ^^^^^^^^ invalid cast 12 | 13help: consider borrowing the value 14 | 15LL - v as &u8; 16LL + &*v; 17 | 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0605`.