generativity 1.2.1

Generation of unique invariant lifetimes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0716]: temporary value dropped while borrowed
 --> tests/ui/crossed_streams.rs:5:5
  |
5 |     make_guard!(b);
  |     ^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
6 |     dbg!(a == b); // ERROR (here == is a static check)
7 | }
  | -
  | |
  | temporary value is freed at the end of this statement
  | borrow might be used here, when `lifetime_brand` is dropped and runs the `Drop` code for type `generativity::LifetimeBrand`
  |
  = note: consider using a `let` binding to create a longer lived value
  = note: this error originates in the macro `make_guard` (in Nightly builds, run with -Z macro-backtrace for more info)