rust/src/test/ui/const-generics/issues/auxiliary/impl-const.rs

11 lines
221 B
Rust
Raw Normal View History

#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]
pub struct Num<const N: usize>;
// Braces around const expression causes crash
impl Num<{5}> {
pub fn five(&self) {
}
}