Guarantee that variables are Copy+Clone.
This commit is contained in:
parent
1d394e00f6
commit
92029393f6
|
@ -91,7 +91,7 @@ impl fmt::Display for SynthesisError {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait ConstraintSystem<E: Engine>: Sized {
|
pub trait ConstraintSystem<E: Engine>: Sized {
|
||||||
type Variable;
|
type Variable: Sized + Copy + Clone;
|
||||||
|
|
||||||
/// 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.
|
||||||
|
@ -336,7 +336,7 @@ impl<'cs, E: Engine, CS: ConstraintSystem<E>> ConstraintSystem<E> for &'cs mut C
|
||||||
fn test_cs() {
|
fn test_cs() {
|
||||||
use pairing::bls12_381::{Bls12, Fr};
|
use pairing::bls12_381::{Bls12, Fr};
|
||||||
|
|
||||||
#[derive(PartialEq)]
|
#[derive(PartialEq, Copy, Clone)]
|
||||||
enum Var {
|
enum Var {
|
||||||
Input(usize),
|
Input(usize),
|
||||||
Aux(usize)
|
Aux(usize)
|
||||||
|
|
Loading…
Reference in New Issue