rust/tests/ui/generic-const-items/wfcheck_err_leak_issue_118179.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
245 B
Rust
Raw Normal View History

//! 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() {}