Skip to content

Commit 75bb732

Browse files
committed
Partially bless clippy
1 parent 11d570c commit 75bb732

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tools/clippy/tests/ui/ptr_arg.stderr

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ LL | fn cow_good_ret_ty<'a>(input: &'a Cow<'a, str>) -> &str {
66
|
77
= note: `-D elided-named-lifetimes` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(elided_named_lifetimes)]`
9+
help: consider specifying it explicitly
10+
|
11+
LL | fn cow_good_ret_ty<'a>(input: &'a Cow<'a, str>) -> &'a str {
12+
| ++
913

1014
error: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
1115
--> tests/ui/ptr_arg.rs:13:14

0 commit comments

Comments
 (0)