Skip to content

Predicate failure during translation of call to native returning generic type #1185

Closed
@brson

Description

@brson
native mod m {
    fn cast<T>() -> T;
}

type t<T> = { t: T };

fn main() {
    let i: t<int> = m::cast();
}
rust: upcall fail 'Predicate type_has_static_size(ccx, ret_ty) failed', ../src/comp/middle/trans.rs:3851
rust: domain main @0x9745e38 root task failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions