We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ExprKind::Call
1 parent d38e30d commit c91bf12Copy full SHA for c91bf12
tests/ui/needless_path_new.rs
@@ -57,4 +57,9 @@ fn main() {
57
// same but as a method
58
Foo::takes_path_and_impl_path(Path::new("foo"), "bar");
59
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
+ }
65
}
0 commit comments