Skip to content

Commit c91bf12

Browse files
committed
failing test: ExprKind::Call which is not a function call
1 parent d38e30d commit c91bf12

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/ui/needless_path_new.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,9 @@ fn main() {
5757
// same but as a method
5858
Foo::takes_path_and_impl_path(Path::new("foo"), "bar");
5959
f.takes_self_and_path_and_impl_path(Path::new("foo"), "bar");
60+
61+
fn foo() -> Option<&'static Path> {
62+
// Some(...) is `ExprKind::Call`, but we don't consider it
63+
Some(Path::new("foo.txt"))
64+
}
6065
}

0 commit comments

Comments
 (0)