fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
479 B16 linesraw
1error: lifetime may not live long enough
2  --> $DIR/issue-26217.rs:4:5
3   |
4LL | fn bar<'a>() {
5   |        -- lifetime `'a` defined here
6LL |     foo::<&'a i32>();
7   |     ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
8   |
9note: due to current limitations in the borrow checker, this implies a `'static` lifetime
10  --> $DIR/issue-26217.rs:1:30
11   |
12LL | fn foo<T>() where for<'a> T: 'a {}
13   |                              ^^
14
15error: aborting due to previous error
16