mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 19:32:01 +00:00
10 lines
245 B
Rust
10 lines
245 B
Rust
// 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() {}
|