From 4e849ef5c91a53eae51edea2dadac93fe948666d Mon Sep 17 00:00:00 2001 From: lengyijun Date: Sun, 21 Jul 2024 14:02:20 +0800 Subject: [PATCH] typo --- tests/ui/pathbuf_init_then_push.fixed | 4 ++++ tests/ui/pathbuf_init_then_push.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tests/ui/pathbuf_init_then_push.fixed b/tests/ui/pathbuf_init_then_push.fixed index 987ed4f057e1..2a90b8ce2814 100644 --- a/tests/ui/pathbuf_init_then_push.fixed +++ b/tests/ui/pathbuf_init_then_push.fixed @@ -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"); } diff --git a/tests/ui/pathbuf_init_then_push.rs b/tests/ui/pathbuf_init_then_push.rs index 966de9185f07..4a7ae00a7352 100644 --- a/tests/ui/pathbuf_init_then_push.rs +++ b/tests/ui/pathbuf_init_then_push.rs @@ -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"); }