Skip to content

Commit ab7721d

Browse files
committed
Bless nll tests
1 parent 888ba50 commit ab7721d

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unrelated.nll.stderr

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
22
--> $DIR/ordinary-bounds-unrelated.rs:16:74
33
|
44
LL | fn upper_bounds<'a, 'b, 'c, 'd, 'e>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'d, 'e>
5-
| ^^^^^^^^^^^^^^^^^^
5+
| -- ^^^^^^^^^^^^^^^^^^
6+
| |
7+
| hidden type `Ordinary<'b>` captures the lifetime `'b` as defined here
68
|
7-
note: hidden type `Ordinary<'b>` captures the lifetime `'b` as defined here
8-
--> $DIR/ordinary-bounds-unrelated.rs:16:21
9+
help: to declare that the `impl Trait` captures 'b, you can add an explicit `'b` lifetime bound
910
|
10-
LL | fn upper_bounds<'a, 'b, 'c, 'd, 'e>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'d, 'e>
11-
| ^^
11+
LL | fn upper_bounds<'a, 'b, 'c, 'd, 'e>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'d, 'e> + 'b
12+
| ++++
1213

1314
error: aborting due to previous error
1415

src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unsuited.nll.stderr

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
22
--> $DIR/ordinary-bounds-unsuited.rs:18:62
33
|
44
LL | fn upper_bounds<'a, 'b>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'a, 'b>
5-
| ^^^^^^^^^^^^^^^^^^
5+
| -- ^^^^^^^^^^^^^^^^^^
6+
| |
7+
| hidden type `Ordinary<'b>` captures the lifetime `'b` as defined here
68
|
7-
note: hidden type `Ordinary<'b>` captures the lifetime `'b` as defined here
8-
--> $DIR/ordinary-bounds-unsuited.rs:18:21
9+
help: to declare that the `impl Trait` captures 'b, you can add an explicit `'b` lifetime bound
910
|
10-
LL | fn upper_bounds<'a, 'b>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'a, 'b>
11-
| ^^
11+
LL | fn upper_bounds<'a, 'b>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'a, 'b> + 'b
12+
| ++++
1213

1314
error: aborting due to previous error
1415

0 commit comments

Comments
 (0)