]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/defaults/pretty-printing-ast.stdout
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / ui / const-generics / defaults / pretty-printing-ast.stdout
1 #![feature(prelude_import)]
2 #![no_std]
3 // Test the AST pretty printer correctly handles default values for const generics
4 // check-pass
5 // compile-flags: -Z unpretty=expanded
6
7 #![crate_type = "lib"]
8 #[prelude_import]
9 use ::std::prelude::rust_2015::*;
10 #[macro_use]
11 extern crate std;
12
13 trait Foo<const KIND : bool = true> {}
14
15 fn foo<const SIZE : usize = 5>() {}
16
17 struct Range<const FROM : usize = 0, const LEN : usize = 0, const TO : usize =
18     FROM>;