Skip to content

'assertion failed: rp.is_none()' during compile #7400

@dcolish

Description

@dcolish

Code to produce

pub mod bits {
    use std::vec;
    use std::uint;

    struct BitVector<'self> {
        v: &'self [u8]
    }

    pub fn new(n: u64) -> BitVector<'self> {
        let f = vec::with_capacity::<u8>(n);
        BitVector {
            v: f
        }
    }
}


fn main() {
    let f = bits::new(10);
}

Backtrace is here https://gist.github.com/5864573

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions