Closed
Description
Adding this associated constant to my program makes it ICE, not 100% why, but I wouldn't expect this to compile anyway due to the lacking feature
. It could have something to do with the Self
in the type.
Documenting evolution v0.1.0 (file:///Users/nixpulvis/Code/cs4500-alexjo-nathanl/4/evolution)
src/game/traits/mod.rs:53:5: 68:22 error: associated constants are experimental (see issue #29646)
src/game/traits/mod.rs:53 const VEGETARIANS: [Self; 15] = [
src/game/traits/mod.rs:54 Ambush,
src/game/traits/mod.rs:55 Burrowing,
src/game/traits/mod.rs:56 Climbing,
src/game/traits/mod.rs:57 Cooperation,
src/game/traits/mod.rs:58 FatTissue,
...
src/game/traits/mod.rs:53:5: 68:22 help: add #![feature(associated_consts)] to the crate attributes to enable
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'phase_2_configure_and_expand aborted in rustdoc!: 1', ../src/libcore/result.rs:746
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Could not document `evolution`.
To learn more, run the command again with --verbose.
Meta
rustc 1.8.0-nightly (b94cd7a 2016-02-01)
binary: rustc
commit-hash: b94cd7a
commit-date: 2016-02-01
host: i686-apple-darwin
release: 1.8.0-nightly