Guarantee that we inherit the correct variable type.
This commit is contained in:
@@ -95,7 +95,7 @@ pub trait ConstraintSystem<E: Engine>: Sized {
|
|||||||
|
|
||||||
/// Represents the type of the "root" of this constraint system
|
/// Represents the type of the "root" of this constraint system
|
||||||
/// so that nested namespaces can minimize indirection.
|
/// so that nested namespaces can minimize indirection.
|
||||||
type Root: ConstraintSystem<E>;
|
type Root: ConstraintSystem<E, Variable=Self::Variable>;
|
||||||
|
|
||||||
/// Return the "one" input variable
|
/// Return the "one" input variable
|
||||||
fn one(&self) -> Self::Variable;
|
fn one(&self) -> Self::Variable;
|
||||||
|
|||||||
Reference in New Issue
Block a user