]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-26217.stderr
Rollup merge of #101555 - jhpratt:stabilize-mixed_integer_ops, r=joshtriplett
[rust.git] / src / test / ui / issues / issue-26217.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-26217.rs:4:5
3    |
4 LL | fn bar<'a>() {
5    |        -- lifetime `'a` defined here
6 LL |     foo::<&'a i32>();
7    |     ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
8    |
9 note: due to current limitations in the borrow checker, this implies a `'static` lifetime
10   --> $DIR/issue-26217.rs:1:30
11    |
12 LL | fn foo<T>() where for<'a> T: 'a {}
13    |                              ^^
14
15 error: aborting due to previous error
16