mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
17 lines
318 B
Rust
17 lines
318 B
Rust
|
//@ 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() {}
|