about summary refs log tree commit diff
path: root/tests/ui/statics/missing_lifetime.stderr
blob: 102670c36428e3447f3b77018575005d0a2fb832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0261]: use of undeclared lifetime name `'reborrow`
  --> $DIR/missing_lifetime.rs:4:15
   |
LL | struct Slice(&'reborrow [&'static [u8]]);
   |               ^^^^^^^^^ undeclared lifetime
   |
help: consider introducing lifetime `'reborrow` here
   |
LL | struct Slice<'reborrow>(&'reborrow [&'static [u8]]);
   |             +++++++++++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0261`.