Skip to content

assertion failed: !bcx.ccx().maps.moves_map.contains(&arg_expr.id) #6609

Description

@ssbr

Sorry, since I don't know what causes this, can't be more specific, and don't know if the other bug reports (currently 4 others) are related or have distinct causes.

Other issues with the same error:

This is as small as I can get the code:

use core::num::Zero;

pub trait MyTrait {
    pub fn method(&mut self);
}

pub struct MyStruct<U> {
    pub attr: U,
}

pub impl<U: Num> MyStruct<U> {
    pub fn other_method(&mut self) {
        self.attr += Zero::zero();
    }
}

impl MyTrait for MyStruct<f64> {
    pub fn method(&mut self) {
        self.other_method();
    }
}

fn main() {
    let x = MyStruct {attr: 0.0f64};
    let _ = ~x as ~MyTrait;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions