fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0412]: cannot find type `N` in this scope 2 --> $DIR/invalid-const-arguments.rs:5:16 3 | 4LL | struct A<const N: u8>; 5 | ---------------------- similarly named struct `A` defined here 6LL | trait Foo {} 7LL | impl Foo for A<N> {} 8 | ^ 9 | 10help: a struct with a similar name exists 11 | 12LL | impl Foo for A<A> {} 13 | ~ 14help: you might be missing a type parameter 15 | 16LL | impl<N> Foo for A<N> {} 17 | +++ 18 19error[E0412]: cannot find type `T` in this scope 20 --> $DIR/invalid-const-arguments.rs:14:32 21 | 22LL | struct A<const N: u8>; 23 | ---------------------- similarly named struct `A` defined here 24... 25LL | impl<const N: u8> Foo for C<N, T> {} 26 | ^ 27 | 28help: a struct with a similar name exists 29 | 30LL | impl<const N: u8> Foo for C<N, A> {} 31 | ~ 32help: you might be missing a type parameter 33 | 34LL | impl<const N: u8, T> Foo for C<N, T> {} 35 | +++ 36 37error[E0747]: unresolved item provided when a constant was expected 38 --> $DIR/invalid-const-arguments.rs:5:16 39 | 40LL | impl Foo for A<N> {} 41 | ^ 42 | 43help: if this generic argument was intended as a const parameter, surround it with braces 44 | 45LL | impl Foo for A<{ N }> {} 46 | + + 47 48error[E0747]: type provided when a constant was expected 49 --> $DIR/invalid-const-arguments.rs:10:19 50 | 51LL | impl<N> Foo for B<N> {} 52 | - ^ 53 | | 54 | help: consider changing this type parameter to a const parameter: `const N: u8` 55 56error[E0747]: unresolved item provided when a constant was expected 57 --> $DIR/invalid-const-arguments.rs:14:32 58 | 59LL | impl<const N: u8> Foo for C<N, T> {} 60 | ^ 61 | 62help: if this generic argument was intended as a const parameter, surround it with braces 63 | 64LL | impl<const N: u8> Foo for C<N, { T }> {} 65 | + + 66 67error: aborting due to 5 previous errors 68 69Some errors have detailed explanations: E0412, E0747. 70For more information about an error, try `rustc --explain E0412`.