mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 20:47:36 +00:00
14 lines
317 B
Rust
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() {}
|