fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
450 B18 linesraw
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]
9use ::std::prelude::rust_2015::*;
10#[macro_use]
11extern crate std;
12
13trait Foo<const KIND : bool = true> {}
14
15fn foo<const SIZE : usize = 5>() {}
16
17struct Range<const FROM : usize = 0, const LEN : usize = 0, const TO : usize =
18    FROM>;