1 #![feature(prelude_import)]
3 // Test the AST pretty printer correctly handles default values for const generics
5 // compile-flags: -Z unpretty=expanded
9 use ::std::prelude::rust_2015::*;
13 trait Foo<const KIND : bool = true> {}
15 fn foo<const SIZE : usize = 5>() {}
17 struct Range<const FROM : usize = 0, const LEN : usize = 0, const TO : usize =