fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `(): Trait<1>` is not satisfied 2 --> $DIR/unevaluated-const-impl-trait-ref.rs:20:13 3 | 4LL | needs::<1>(); 5 | ^ the trait `Trait<1>` is not implemented for `()` 6 | 7 = help: the following other types implement trait `Trait<N>`: 8 <() as Trait<0>> 9 <() as Trait<2>> 10note: required by a bound in `needs` 11 --> $DIR/unevaluated-const-impl-trait-ref.rs:10:38 12 | 13LL | fn needs<const N: usize>() where (): Trait<N> {} 14 | ^^^^^^^^ required by this bound in `needs` 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0277`.