File tree 2 files changed +9
-7
lines changed
src/test/ui/generic-associated-types
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
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
3
3
|
4
4
LL | fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
5
5
| - ^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds
6
6
| |
7
7
| help: consider adding an explicit lifetime bound...: `C: 'a`
8
8
9
9
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
11
11
|
12
12
LL | fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
13
13
| - ^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds
Original file line number Diff line number Diff line change 1
1
// 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
5
6
7
+ #![ cfg_attr( nll, feature( nll) ) ]
6
8
#![ feature( generic_associated_types) ]
7
9
8
10
use std:: future:: Future ;
@@ -16,8 +18,8 @@ trait Client {
16
18
}
17
19
18
20
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
21
23
where
22
24
C : Client + Send + Sync ,
23
25
{
You can’t perform that action at this time.
0 commit comments