mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
fix tests
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user