summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/issue-96664.rs
blob: 3c5314af73e2d644b5f0e3ee8df9c0533476fbc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass

#![feature(trait_alias)]

pub trait State = Clone + Send + Sync + PartialOrd + PartialEq + std::fmt::Display;
pub trait RandState<S: State> = FnMut() -> S + Send;

pub trait Evaluator {
    type State;
}

pub struct Evolver<E: Evaluator> {
    rand_state: Box<dyn RandState<E::State>>,
}

fn main() {}