You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-rocksdb/tests/fail/iterator_outlive_db.stderr

11 lines
367 B

error[E0597]: `db` does not live long enough
--> $DIR/iterator_outlive_db.rs:6:9
|
4 | let _iter = {
| ----- borrow later stored here
5 | let db = DB::open_default("foo").unwrap();
6 | db.iterator(IteratorMode::Start)
| ^^ borrowed value does not live long enough
7 | };
| - `db` dropped here while still borrowed