// run-pass // revisions: full min #![cfg_attr(full, feature(const_generics))] #![cfg_attr(full, allow(incomplete_features))] const L: usize = 4; pub trait Print { fn print(&self) -> usize { N } } pub struct Printer; impl Print for Printer {} fn main() { let p = Printer; assert_eq!(p.print(), 4); }