fix tests

This commit is contained in:
Esteban Küber
2025-11-03 02:23:12 +00:00
parent 4e09cd1a79
commit 817cf4b0a5
3 changed files with 3 additions and 2 deletions
@@ -17,6 +17,7 @@ error[E0195]: lifetime parameters or bounds on associated type `IntoIter` do not
|
LL | type IntoIter<'a> = std::collections::btree_map::Values<'a, i32, T>;
| ^^^^ lifetimes do not match associated type in trait
|
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
= note: lifetimes in impl do not match this associated type in trait
@@ -12,7 +12,7 @@ impl<'a> Trait for &'_ S {
//~^ ERROR E0207
//~| NOTE there is a named lifetime specified on the impl block you could use
//~| NOTE unconstrained lifetime parameter
//~| HELP consider using the named lifetime here instead of an implict lifetime
//~| HELP consider using the named lifetime here instead of an implicit lifetime
type Item = &T;
//~^ ERROR missing lifetime in associated type
//~| HELP consider using the lifetime from the impl block
@@ -19,7 +19,7 @@ error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait,
LL | impl<'a> Trait for &'_ S {
| ^^ unconstrained lifetime parameter
|
help: consider using the named lifetime here instead of an implict lifetime
help: consider using the named lifetime here instead of an implicit lifetime
|
LL - impl<'a> Trait for &'_ S {
LL + impl<'a> Trait for &'a S {