rust/tests/ui/const-generics/generic_const_exprs/issue-89851.rs
2024-02-16 20:02:50 +00:00

13 lines
216 B
Rust

//@ check-pass
// (this requires debug assertions)
#![feature(adt_const_params)]
#![allow(incomplete_features)]
pub const BAR: () = ice::<"">();
pub const fn ice<const N: &'static str>() {
&10;
}
fn main() {}