fork/rust

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

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

master
685 B16 linesraw
1error[E0491]: in type `&'static &'a ()`, reference has a longer lifetime than the data it references
2  --> $DIR/issue-86053-2.rs:8:39
3   |
4LL | unsafe extern "C" fn ordering4<'a, F: H<&'static &'a ()>>(_: (), ...) {}
5   |                                       ^^^^^^^^^^^^^^^^^^
6   |
7   = note: the pointer is valid for the static lifetime
8note: but the referenced data is only valid for the lifetime `'a` as defined here
9  --> $DIR/issue-86053-2.rs:8:32
10   |
11LL | unsafe extern "C" fn ordering4<'a, F: H<&'static &'a ()>>(_: (), ...) {}
12   |                                ^^
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0491`.