File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
src/test/ui/generic-associated-types Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11error[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 |
44LL | 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
99error[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 |
1212LL | fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
1313 | - ^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds
Original file line number Diff line number Diff line change 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
810use std:: future:: Future ;
@@ -16,8 +18,8 @@ trait Client {
1618}
1719
1820fn 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
2123where
2224 C : Client + Send + Sync ,
2325{
You can’t perform that action at this time.
0 commit comments