Skip to content

static call to invalid vtable #20676

Closed
@alexcrichton

Description

@alexcrichton

Discovered this ICE in the rollup that I'm preparing:

fn main() {
    let a: &fmt::Show = &1i;     
    format!("{:?}", a);
}
error: internal compiler error: static call to invalid vtable: VtableObject(VtableObject(object_ty=core::fmt::Show + 'static))
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/alex/code/rust2/src/libsyntax/diagnostic.rs:182

Metadata

Metadata

Assignees

Labels

I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-mediumMedium priority

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions