Files
rust/tests/ui/const-generics/generic_const_exprs/non-local-const.rs

11 lines
286 B
Rust
Raw Normal View History

2025-06-27 16:59:25 +00:00
// regression test for #133808.
#![feature(generic_const_exprs)]
#![feature(min_generic_const_args)]
#![allow(incomplete_features)]
#![crate_type = "lib"]
pub trait Foo {}
impl Foo for [u8; std::path::MAIN_SEPARATOR] {}
//~^ ERROR the constant `MAIN_SEPARATOR` is not of type `usize`