mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
13 lines
238 B
Rust
13 lines
238 B
Rust
//@ 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() {}
|