about summary refs log tree commit diff
path: root/tests/ui/generic-const-items/wfcheck_err_leak_issue_118179.rs
blob: 856f7b622d7ef0b14a39782191fd5e34647792a0 (plain)
1
2
3
4
5
6
7
//! 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() {}