]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-92096.migrate.stderr
Move some tests with compare-mode=nll output to revisions
[rust.git] / src / test / ui / generic-associated-types / issue-92096.migrate.stderr
1 error[E0311]: the parameter type `C` may not live long enough
2   --> $DIR/issue-92096.rs:20:33
3    |
4 LL | fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
5    |                 -               ^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds
6    |                 |
7    |                 help: consider adding an explicit lifetime bound...: `C: 'a`
8
9 error[E0311]: the parameter type `C` may not live long enough
10   --> $DIR/issue-92096.rs:20:33
11    |
12 LL | fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
13    |                 -               ^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds
14    |                 |
15    |                 help: consider adding an explicit lifetime bound...: `C: 'a`
16
17 error: aborting due to 2 previous errors
18