Skip to content

Commit 05cdfad

Browse files
committed
Fix typo in needless_lifetimes test
1 parent 1fa2348 commit 05cdfad

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tests/ui/needless_lifetimes.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ mod nested_elision_sites {
384384
f()
385385
}
386386
// lint
387-
fn where_clause_elidadable<T>(i: &i32, f: T) -> &i32
387+
fn where_clause_elidable<T>(i: &i32, f: T) -> &i32
388388
where
389389
T: Fn(&i32) -> &i32,
390390
{

tests/ui/needless_lifetimes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ mod nested_elision_sites {
384384
f()
385385
}
386386
// lint
387-
fn where_clause_elidadable<'a, T>(i: &'a i32, f: T) -> &'a i32
387+
fn where_clause_elidable<'a, T>(i: &'a i32, f: T) -> &'a i32
388388
where
389389
T: Fn(&i32) -> &i32,
390390
{

tests/ui/needless_lifetimes.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,15 +384,15 @@ LL + fn generics_elidable<T: Fn(&i32) -> &i32>(i: &i32, f: T) -> &i32 {
384384
|
385385

386386
error: the following explicit lifetimes could be elided: 'a
387-
--> tests/ui/needless_lifetimes.rs:387:32
387+
--> tests/ui/needless_lifetimes.rs:387:30
388388
|
389-
LL | fn where_clause_elidadable<'a, T>(i: &'a i32, f: T) -> &'a i32
390-
| ^^ ^^ ^^
389+
LL | fn where_clause_elidable<'a, T>(i: &'a i32, f: T) -> &'a i32
390+
| ^^ ^^ ^^
391391
|
392392
help: elide the lifetimes
393393
|
394-
LL - fn where_clause_elidadable<'a, T>(i: &'a i32, f: T) -> &'a i32
395-
LL + fn where_clause_elidadable<T>(i: &i32, f: T) -> &i32
394+
LL - fn where_clause_elidable<'a, T>(i: &'a i32, f: T) -> &'a i32
395+
LL + fn where_clause_elidable<T>(i: &i32, f: T) -> &i32
396396
|
397397

398398
error: the following explicit lifetimes could be elided: 'a

0 commit comments

Comments
 (0)