fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: generic parameters with a default must be trailing 2 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:8:12 3 | 4LL | struct Bar<T = [u8; N], const N: usize>(T); 5 | ^ 6 7error: generic parameters may not be used in const operations 8 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:5:44 9 | 10LL | struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U); 11 | ^ cannot perform const operation using `T` 12 | 13 = note: type parameters may not be used in const expressions 14 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions 15 16error[E0128]: generic parameters with a default cannot use forward declared identifiers 17 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:8:21 18 | 19LL | struct Bar<T = [u8; N], const N: usize>(T); 20 | ^ defaulted generic parameters cannot be forward declared 21 22error: aborting due to 3 previous errors 23 24For more information about this error, try `rustc --explain E0128`.