In the Rust code below, I cannot convert my array of bytes into a GenericArray. The compiler tells me to give a type the "bytes" like generic_array::GenericArray<u8, N>, but I don't know what to use as "N".
I found out the N must be of type ArrayLength and I am stuck here because I don't see the link with a size to pass.
fn main() {
use aes::block_cipher_trait::generic_array::GenericArray;
let phrase = "Le Rust tu comprendras jeune padawan !";
println!("my phrase {:?}", &phrase);
let b = phrase.as_bytes();
println!("my bytes {:?} len : {}", &b, b.len());
let bytes = GenericArray::clone_from_slice(&b[0..16]);
println!("my bytes {:?}", &bytes);
}