Files
rust/tests/ui/traits/const-traits/group-traits.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
324 B
Rust
Raw Normal View History

2024-06-14 12:16:15 +00:00
//@ check-pass
use std::ops::Add;
pub trait GroupOpsOwned<Rhs = Self, Output = Self>: for<'r> Add<&'r Rhs, Output = Output> {}
pub trait Curve: Sized + GroupOpsOwned<Self::AffineRepr> {
type AffineRepr;
}
pub trait CofactorCurve: Curve<AffineRepr = <Self as CofactorCurve>::Affine> {
type Affine;
}
fn main() {}