mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
c5598d6a9e
avoid `{type error}` being leaked in user-facing messages, particularly when using the `adt_const_params` feature
8 lines
245 B
Rust
8 lines
245 B
Rust
//! Regression test for #118179: `adt_const_params` feature shouldn't leak
|
|
//! `{type error}` in error messages.
|
|
|
|
struct G<T, const N: Vec<T>>(T);
|
|
//~^ ERROR the type of const parameters must not depend on other generic parameters
|
|
|
|
fn main() {}
|