//@ check-pass #![feature(trait_alias)] pub trait State = Clone + Send + Sync + PartialOrd + PartialEq + std::fmt::Display; pub trait RandState = FnMut() -> S + Send; pub trait Evaluator { type State; } pub struct Evolver { rand_state: Box>, } fn main() {}