Closed
Description
rustc: rustc 1.14.0-nightly (6e8f92f11 2016-10-07)
cargo: cargo 0.13.0-nightly (6534bdd 2016-10-07)
Short code example to reproduce the issue:
#![feature(associated_type_defaults)]
trait State: Sized {
type NextState: State = StateMachineEnded;
fn execute(self) -> Option<Self::NextState>;
}
struct StateMachineEnded;
impl State for StateMachineEnded {
fn execute(self) -> Option<Self::NextState> {
None
}
}
Adding type NextState = StateMachineEnded;
to the implementation - will compile.
RUST_LOG=trace RUST_BACKTRACE=1 cargo build
log: https://gist.github.com/lilianmoraru/69701f72b626f9872661952190066b37