fix: not insert missing lifetime for ConstParamTy
This commit is contained in:
parent
8e7fd55131
commit
078b942fef
4 changed files with 31 additions and 7 deletions
9
tests/ui/const-generics/lifetime-in-const-param.rs
Normal file
9
tests/ui/const-generics/lifetime-in-const-param.rs
Normal 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() {}
|
Loading…
Add table
Add a link
Reference in a new issue