fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0106]: missing lifetime specifier 2 --> $DIR/lifetime-in-const-param.rs:5:23 3 | 4LL | struct S<'a, const N: S2>(&'a ()); 5 | ^^ expected named lifetime parameter 6 7error: `S2<'_>` is forbidden as the type of a const generic parameter 8 --> $DIR/lifetime-in-const-param.rs:5:23 9 | 10LL | struct S<'a, const N: S2>(&'a ()); 11 | ^^ 12 | 13 = note: the only supported types are integers, `bool` and `char` 14 = help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types 15 16error: aborting due to 2 previous errors 17 18For more information about this error, try `rustc --explain E0106`.