rust/tests/ui/const-generics/lifetime-in-const-param.rs
Barrett Ray c5598d6a9e fix(hir_analysis/wfcheck): don't leak {type error}
avoid `{type error}` being leaked in user-facing messages,
particularly when using the `adt_const_params` feature
2024-09-29 23:40:43 -05:00

9 lines
171 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]
fn main() {}