Skip to content

Commit ea562ae

Browse files
committed
Add nll revision for issue-92096 test that passes
1 parent ad57295 commit ea562ae

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/test/ui/generic-associated-types/issue-92096.stderr src/test/ui/generic-associated-types/issue-92096.migrate.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error[E0311]: the parameter type `C` may not live long enough
2-
--> $DIR/issue-92096.rs:18:33
2+
--> $DIR/issue-92096.rs:20:33
33
|
44
LL | fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
55
| - ^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds
66
| |
77
| help: consider adding an explicit lifetime bound...: `C: 'a`
88

99
error[E0311]: the parameter type `C` may not live long enough
10-
--> $DIR/issue-92096.rs:18:33
10+
--> $DIR/issue-92096.rs:20:33
1111
|
1212
LL | fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
1313
| - ^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds

src/test/ui/generic-associated-types/issue-92096.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// edition:2018
2-
// check-fail
3-
// FIXME(generic_associated_types): this should pass, but we end up
4-
// essentially requiring that `for<'s> C: 's`
2+
// [nll] check-pass
3+
// revisions: migrate nll
4+
// Explicitly testing nll with revision, so ignore compare-mode=nll
5+
// ignore-compare-mode-nll
56

7+
#![cfg_attr(nll, feature(nll))]
68
#![feature(generic_associated_types)]
79

810
use std::future::Future;
@@ -16,8 +18,8 @@ trait Client {
1618
}
1719

1820
fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
19-
//~^ ERROR the parameter
20-
//~| ERROR the parameter
21+
//[migrate]~^ ERROR the parameter
22+
//[migrate]~| ERROR the parameter
2123
where
2224
C: Client + Send + Sync,
2325
{

0 commit comments

Comments
 (0)