mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
c5598d6a9e
avoid `{type error}` being leaked in user-facing messages, particularly when using the `adt_const_params` feature
9 lines
171 B
Rust
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() {}
|