]> git.lizzy.rs Git - rust.git/blob - src/test/ui/c-variadic/issue-86053-2.stderr
Rollup merge of #100192 - tmiasko:rm-duplicated-locals, r=nagisa
[rust.git] / src / test / ui / c-variadic / issue-86053-2.stderr
1 error[E0491]: in type `&'static &'a ()`, reference has a longer lifetime than the data it references
2   --> $DIR/issue-86053-2.rs:8:39
3    |
4 LL | unsafe extern "C" fn ordering4<'a, F: H<&'static &'a ()>>(_: (), ...) {}
5    |                                       ^^^^^^^^^^^^^^^^^^
6    |
7    = note: the pointer is valid for the static lifetime
8 note: but the referenced data is only valid for the lifetime `'a` as defined here
9   --> $DIR/issue-86053-2.rs:8:32
10    |
11 LL | unsafe extern "C" fn ordering4<'a, F: H<&'static &'a ()>>(_: (), ...) {}
12    |                                ^^
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0491`.