Skip to content

Commit

Permalink
Guarantee that we inherit the correct variable type.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebfull committed Nov 24, 2017
1 parent 9202939 commit 1fc640e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub trait ConstraintSystem<E: Engine>: Sized {

/// Represents the type of the "root" of this constraint system
/// so that nested namespaces can minimize indirection.
type Root: ConstraintSystem<E>;
type Root: ConstraintSystem<E, Variable=Self::Variable>;

/// Return the "one" input variable
fn one(&self) -> Self::Variable;
Expand Down

0 comments on commit 1fc640e

Please sign in to comment.