Closed
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Description
Code:
#![feature(associated_consts)]
trait Tr {
const C: Self;
}
fn main() {
let a: u8 = Tr::C;
}
Output:
<anon>:4:5: 4:19 error: internal compiler error: Encountered error `Unimplemented` when trying to select an implementation for constant trait item reference.
<anon>:4 const C: Self;
^~~~~~~~~~~~~~
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 'Box<Any>', ../src/libsyntax/diagnostic.rs:176
Reproduces on nightly.
Metadata
Metadata
Assignees
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Activity
samdoiron commentedon Dec 21, 2015
Triage: Able to reproduce on
rustc 1.7.0-nightly (abf60b20a 2015-12-19)29595
petrochenkov commentedon Feb 19, 2017
Fixed in 1.17.0, needs test.
Rollup merge of rust-lang#40433 - mattico:test-issue-29595, r=estebank
Rollup merge of rust-lang#40433 - mattico:test-issue-29595, r=estebank
Rollup merge of rust-lang#40433 - mattico:test-issue-29595, r=estebank
Rollup merge of rust-lang#40433 - mattico:test-issue-29595, r=estebank
Rollup merge of rust-lang#40433 - mattico:test-issue-29595, r=estebank
Rollup merge of rust-lang#40433 - mattico:test-issue-29595, r=estebank
Rollup merge of rust-lang#40433 - mattico:test-issue-29595, r=estebank
Rollup merge of rust-lang#40433 - mattico:test-issue-29595, r=estebank