diff options
| author | Samuel Moelius <sam@moeli.us> | 2024-08-18 13:42:16 -0400 |
|---|---|---|
| committer | Samuel Moelius <sam@moeli.us> | 2024-09-25 13:52:12 -0400 |
| commit | 5c2f6db2892ab7abdfa7eebf96fb3600938a674a (patch) | |
| tree | 388dbde2803bd6ea027b11876c24c6f9d2dc51e1 | |
| parent | 66f1f544afaf7e277fefa7702bcc91ca498879c5 (diff) | |
| download | rust-5c2f6db2892ab7abdfa7eebf96fb3600938a674a.tar.gz rust-5c2f6db2892ab7abdfa7eebf96fb3600938a674a.zip | |
Fix typo in `needless_lifetimes` test
| -rw-r--r-- | tests/ui/needless_lifetimes.fixed | 2 | ||||
| -rw-r--r-- | tests/ui/needless_lifetimes.rs | 2 | ||||
| -rw-r--r-- | tests/ui/needless_lifetimes.stderr | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/tests/ui/needless_lifetimes.fixed b/tests/ui/needless_lifetimes.fixed index e4bb7f86d12..7ded5b4234c 100644 --- a/tests/ui/needless_lifetimes.fixed +++ b/tests/ui/needless_lifetimes.fixed @@ -384,7 +384,7 @@ mod nested_elision_sites { f() } // lint - fn where_clause_elidadable<T>(i: &i32, f: T) -> &i32 + fn where_clause_elidable<T>(i: &i32, f: T) -> &i32 where T: Fn(&i32) -> &i32, { diff --git a/tests/ui/needless_lifetimes.rs b/tests/ui/needless_lifetimes.rs index 03d6f201358..8b3a885f4a3 100644 --- a/tests/ui/needless_lifetimes.rs +++ b/tests/ui/needless_lifetimes.rs @@ -384,7 +384,7 @@ mod nested_elision_sites { f() } // lint - fn where_clause_elidadable<'a, T>(i: &'a i32, f: T) -> &'a i32 + fn where_clause_elidable<'a, T>(i: &'a i32, f: T) -> &'a i32 where T: Fn(&i32) -> &i32, { diff --git a/tests/ui/needless_lifetimes.stderr b/tests/ui/needless_lifetimes.stderr index 166e6d0eabf..e56c914cc86 100644 --- a/tests/ui/needless_lifetimes.stderr +++ b/tests/ui/needless_lifetimes.stderr @@ -384,15 +384,15 @@ LL + fn generics_elidable<T: Fn(&i32) -> &i32>(i: &i32, f: T) -> &i32 { | error: the following explicit lifetimes could be elided: 'a - --> tests/ui/needless_lifetimes.rs:387:32 + --> tests/ui/needless_lifetimes.rs:387:30 | -LL | fn where_clause_elidadable<'a, T>(i: &'a i32, f: T) -> &'a i32 - | ^^ ^^ ^^ +LL | fn where_clause_elidable<'a, T>(i: &'a i32, f: T) -> &'a i32 + | ^^ ^^ ^^ | help: elide the lifetimes | -LL - fn where_clause_elidadable<'a, T>(i: &'a i32, f: T) -> &'a i32 -LL + fn where_clause_elidadable<T>(i: &i32, f: T) -> &i32 +LL - fn where_clause_elidable<'a, T>(i: &'a i32, f: T) -> &'a i32 +LL + fn where_clause_elidable<T>(i: &i32, f: T) -> &i32 | error: the following explicit lifetimes could be elided: 'a |
