Sign in
android
/
toolchain
/
rustc
/
87880447cc5437c45a3562596a9766d9797e7318
/
.
/
tests
/
ui
/
const-generics
/
lifetime-in-const-param.rs
blob: be90dbb213eef6ddce565f399c8769f11304d81b [
file
] [
log
] [
blame
]
// 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
()
{}