Skip to content

error: internal compiler error: node_id_to_type: no type for node expr A::C (id=61) #13407

Closed
@ghost

Description

Host OS: Linux Mint 15 x86_64
rustc version: rustc 0.10-pre (6f1c06d 2014-04-03 03:42:02 -0700)

Test case:

use A::B;
pub mod A {
  pub trait B {
    fn new() -> Self;
  }
  pub struct C;
  impl B for C {
    fn new() -> C { C }
  }
}

pub fn test(param: ~A::B) {}

fn main() {
  test(A::C = B::new());
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions