Skip to content

Commit 817cf4b

Browse files
committed
fix tests
1 parent 4e09cd1 commit 817cf4b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

tests/ui/lifetimes/missing-lifetime-in-assoc-type-4.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ error[E0195]: lifetime parameters or bounds on associated type `IntoIter` do not
1717
|
1818
LL | type IntoIter<'a> = std::collections::btree_map::Values<'a, i32, T>;
1919
| ^^^^ lifetimes do not match associated type in trait
20+
|
2021
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
2122
|
2223
= note: lifetimes in impl do not match this associated type in trait

tests/ui/lifetimes/missing-lifetime-in-assoc-type-6.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ impl<'a> Trait for &'_ S {
1212
//~^ ERROR E0207
1313
//~| NOTE there is a named lifetime specified on the impl block you could use
1414
//~| NOTE unconstrained lifetime parameter
15-
//~| HELP consider using the named lifetime here instead of an implict lifetime
15+
//~| HELP consider using the named lifetime here instead of an implicit lifetime
1616
type Item = &T;
1717
//~^ ERROR missing lifetime in associated type
1818
//~| HELP consider using the lifetime from the impl block

tests/ui/lifetimes/missing-lifetime-in-assoc-type-6.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait,
1919
LL | impl<'a> Trait for &'_ S {
2020
| ^^ unconstrained lifetime parameter
2121
|
22-
help: consider using the named lifetime here instead of an implict lifetime
22+
help: consider using the named lifetime here instead of an implicit lifetime
2323
|
2424
LL - impl<'a> Trait for &'_ S {
2525
LL + impl<'a> Trait for &'a S {

0 commit comments

Comments
 (0)