fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0425]: cannot find value `N` in this scope 2 --> $DIR/missing-const-parameter.rs:3:15 3 | 4LL | impl Struct<{ N }> {} 5 | ^ not found in this scope 6 | 7help: you might be missing a const parameter 8 | 9LL | impl<const N: /* Type */> Struct<{ N }> {} 10 | +++++++++++++++++++++ 11 12error[E0425]: cannot find value `N` in this scope 13 --> $DIR/missing-const-parameter.rs:7:22 14 | 15LL | fn func0(_: Struct<{ N }>) {} 16 | ^ not found in this scope 17 | 18help: you might be missing a const parameter 19 | 20LL | fn func0<const N: /* Type */>(_: Struct<{ N }>) {} 21 | +++++++++++++++++++++ 22 23error[E0425]: cannot find value `N` in this scope 24 --> $DIR/missing-const-parameter.rs:11:18 25 | 26LL | fn func1(_: [u8; N]) {} 27 | ^ not found in this scope 28 | 29help: you might be missing a const parameter 30 | 31LL | fn func1<const N: /* Type */>(_: [u8; N]) {} 32 | +++++++++++++++++++++ 33 34error[E0425]: cannot find value `N` in this scope 35 --> $DIR/missing-const-parameter.rs:15:20 36 | 37LL | fn func2<T>(_: [T; N]) {} 38 | ^ not found in this scope 39 | 40help: you might be missing a const parameter 41 | 42LL | fn func2<T, const N: /* Type */>(_: [T; N]) {} 43 | +++++++++++++++++++++ 44 45error[E0425]: cannot find value `C` in this scope 46 --> $DIR/missing-const-parameter.rs:19:37 47 | 48LL | struct Image<const R: usize>([[u32; C]; R]); 49 | - ^ 50 | | 51 | similarly named const parameter `R` defined here 52 | 53help: a const parameter with a similar name exists 54 | 55LL | struct Image<const R: usize>([[u32; R]; R]); 56 | ~ 57help: you might be missing a const parameter 58 | 59LL | struct Image<const R: usize, const C: /* Type */>([[u32; C]; R]); 60 | +++++++++++++++++++++ 61 62error: aborting due to 5 previous errors 63 64For more information about this error, try `rustc --explain E0425`.