rust/tests/ui/const-generics/issues/issue-67375.rs

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

13 lines
373 B
Rust
Raw Normal View History

2020-10-03 11:00:18 -05:00
// revisions: full min
#![cfg_attr(full, allow(incomplete_features))]
#![cfg_attr(full, feature(generic_const_exprs))]
struct Bug<T> {
2021-10-12 15:47:34 -05:00
//[min]~^ ERROR parameter `T` is never used
inner: [(); { [|_: &T| {}; 0].len() }],
2020-10-12 16:27:59 -05:00
//[min]~^ ERROR generic parameters may not be used in const operations
//[full]~^^ ERROR overly complex generic constant
}
fn main() {}