Open leonardo-m opened 4 years ago
Much like giving the hint of _u32
to the first element, you can do
let foos2 = [&[1_u32, 2, 3][..], &[1, 2], &[]];
Thank you, your code compiles, and I'll use it. But I think my original ER issue is still valid.
This code:
Currently (rustc 1.47.0-nightly 8ad7bc3f4 2020-07-21) this gives:
Is it possible to improve the type system so foo2 too compiles?