]> git.lizzy.rs Git - rust.git/blob - tests/ui/higher-rank-trait-bounds/issue-59311.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / higher-rank-trait-bounds / issue-59311.stderr
1 error: higher-ranked lifetime error
2   --> $DIR/issue-59311.rs:17:5
3    |
4 LL |     v.t(|| {});
5    |     ^^^^^^^^^^
6    |
7    = note: could not prove `[closure@$DIR/issue-59311.rs:17:9: 17:11] well-formed`
8
9 error: higher-ranked lifetime error
10   --> $DIR/issue-59311.rs:17:9
11    |
12 LL |     v.t(|| {});
13    |         ^^^^^
14    |
15    = note: could not prove `for<'a> &'a V: 'static`
16
17 error: aborting due to 2 previous errors
18