error[E0597]: `buffer` does not live long enough
  --> src/main.rs:13:20
   |
13 |     goblin::parse(&buffer)
   |                    ^^^^^^ does not live long enough
14 | }
   | - borrowed value only lives until here
   |
note: borrowed value must be valid for the anonymous lifetime #1 defined on the function body at 10:1...
  --> src/main.rs:10:1
   |
10 | / fn open_elf(path : &str) -> Result<goblin::Object, goblin::error::Error> {
11 | |     let fd = File::open(path)?;
12 | |     let buffer = Buffer::try_from(fd)?;
13 | |     goblin::parse(&buffer)
14 | | }
   | |_^

The entries are the properties of their respective owners.
Powered by Flask, SQLAlchemy, Pygments and Bootstrap.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.