Skip to content

Commit a11ed8c

Browse files
committed
Tests to create something on stack should create it on stack.
1 parent dbeef92 commit a11ed8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/deque.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ mod tests {
518518

519519
#[test]
520520
fn stack_new() {
521-
static mut _V: Deque<i32, 4> = Deque::new();
521+
let mut _v: Deque<i32, 4> = Deque::new();
522522
}
523523

524524
macro_rules! droppable {

src/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ mod tests {
827827

828828
#[test]
829829
fn stack_new() {
830-
static mut _V: Vec<i32, 4> = Vec::new();
830+
let mut _v: Vec<i32, 4> = Vec::new();
831831
}
832832

833833
macro_rules! droppable {

0 commit comments

Comments
 (0)