Skip to content

VecDeque::push_back(()) does not work correctly. #28488

Closed
@dpc

Description

@dpc

http://is.gd/NY4tCl

use std::collections::VecDeque;

fn main() {
    let mut v = VecDeque::new();
    v.push_back(());                                                                                                         
    assert!(v.len() > 0 );   
}

thread '<main>' panicked at 'assertion failed: v.len() > 0', <anon>:6

Metadata

Metadata

Assignees

No one assigned

    Labels

    regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions