rust/tests/ui/const-generics/mgca/unexpected-fn-item-in-array.rs
2025-02-11 19:16:12 +00:00

14 lines
317 B
Rust

// Make sure we don't ICE when encountering an fn item during lowering in mGCA.
#![feature(min_generic_const_args)]
//~^ WARN the feature `min_generic_const_args` is incomplete
trait A<T> {}
impl A<[usize; fn_item]> for () {}
//~^ ERROR the constant `fn_item` is not of type `usize`
fn fn_item() {}
fn main() {}