1
Fork 0

fix: not insert missing lifetime for ConstParamTy

This commit is contained in:
bohan 2023-08-08 14:20:22 +08:00
parent 8e7fd55131
commit 078b942fef
4 changed files with 31 additions and 7 deletions

View file

@ -0,0 +1,9 @@
// https://github.com/rust-lang/rust/issues/113462
struct S2<'b>(&'b ());
struct S<'a, const N: S2>(&'a ());
//~^ ERROR missing lifetime specifier [E0106]
//~| ERROR `S2<'_>` is forbidden as the type of a const generic parameter
fn main() {}