Skip to content

Commit 482ae2a

Browse files
committed
wip
1 parent 9f51060 commit 482ae2a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/ui/pathbuf_init_then_push.fixed

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ fn main() {
99

1010
let bar = "bar";
1111
path_buf = PathBuf::from("foo").join(bar);
12+
13+
let mut x = PathBuf::new();
14+
println!("{}", x.display());
15+
x.push("Duck");
1216
}

tests/ui/pathbuf_init_then_push.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ fn main() {
1212
let bar = "bar";
1313
path_buf = PathBuf::from("foo");
1414
path_buf.push(bar);
15+
16+
let mut x = PathBuf::new();
17+
println!("{}", x.display());
18+
x.push("Duck");
1519
}

0 commit comments

Comments
 (0)