From: Ian Jackson Date: Mon, 16 May 2022 15:27:07 +0000 (+0100) Subject: Y X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=a679d89945f2c39b62367fe38330780a7d064920;p=rust-experiments.git Y --- diff --git a/src/main.rs b/src/main.rs index de3f0a3..454b375 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,7 +14,9 @@ struct Concat( [S; B], ); -trait Ish { const N: usize; } +trait Ish { + const N: usize; +} trait Has { const F: [S; N]; @@ -23,7 +25,7 @@ trait Has { struct Inner { i: usize, } impl Ish for Inner { - const N: usize = 1; + const N: usize = ; } impl Has<1> for Inner { const F: [S; 1] = ["i"];