about summary refs log tree commit diff
path: root/tests/ui/const-generics/generic_const_exprs/issue-89851.rs
blob: f93ba30856dcb71c8a9a9e63a9db7d9638573b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ check-pass
// (this requires debug assertions)

#![feature(adt_const_params, unsized_const_params)]
#![allow(incomplete_features)]

pub const BAR: () = ice::<"">();
pub const fn ice<const N: &'static str>() {
    &10;
}

fn main() {}