Skip to content

Commit 6d3a91e

Browse files
committed
typo
1 parent 53eb717 commit 6d3a91e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/ui/pathbuf_init_then_push.fixed

+4
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ fn main() {
1515
let mut x = PathBuf::new();
1616
println!("{}", x.display());
1717
x.push("Duck");
18+
19+
let mut path_buf = PathBuf::new();
20+
#[cfg(cats)]
21+
path_buf.push("foo");
1822
}

tests/ui/pathbuf_init_then_push.rs

+4
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ fn main() {
1919
let mut x = PathBuf::new();
2020
println!("{}", x.display());
2121
x.push("Duck");
22+
23+
let mut path_buf = PathBuf::new();
24+
#[cfg(cats)]
25+
path_buf.push("foo");
2226
}

0 commit comments

Comments
 (0)