]> git.proxmox.com Git - rustc.git/blob - src/tools/rustfmt/tests/target/issue-4816/lib.rs
New upstream version 1.58.1+dfsg1
[rustc.git] / src / tools / rustfmt / tests / target / issue-4816 / lib.rs
1 #![feature(const_generics_defaults)]
2 struct Foo<const N: usize = 1, const N2: usize = 2>;
3 struct Bar<const N: usize, const N2: usize = { N + 1 }>;
4 struct Lots<
5 const N1BlahFooUwU: usize = { 10 + 28 + 1872 / 10 * 3 },
6 const N2SecondParamOhmyyy: usize = { N1BlahFooUwU / 2 + 10 * 2 },
7 >;
8 struct NamesRHard<const N: usize = { 1 + 1 + 1 + 1 + 1 + 1 }>;
9 struct FooBar<
10 const LessThan100ButClose: usize = {
11 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1
12 },
13 >;
14 struct FooBarrrrrrrr<
15 const N: usize = {
16 13478234326456456444323871
17 + 1
18 + 1
19 + 1
20 + 1
21 + 1
22 + 1
23 + 1
24 + 1
25 + 1
26 + 1
27 + 1
28 + 1
29 + 1
30 + 1
31 + 1
32 + 1
33 + 1
34 },
35 >;