Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyijun committed Jul 21, 2024
1 parent 53eb717 commit 6d3a91e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/ui/pathbuf_init_then_push.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ fn main() {
let mut x = PathBuf::new();
println!("{}", x.display());
x.push("Duck");

let mut path_buf = PathBuf::new();
#[cfg(cats)]
path_buf.push("foo");
}
4 changes: 4 additions & 0 deletions tests/ui/pathbuf_init_then_push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ fn main() {
let mut x = PathBuf::new();
println!("{}", x.display());
x.push("Duck");

let mut path_buf = PathBuf::new();
#[cfg(cats)]
path_buf.push("foo");
}

0 comments on commit 6d3a91e

Please sign in to comment.