1 use std::cell::RefCell;
6 fn inner(mut foo: &[u8]) {
7 let refcell = RefCell::new(&mut foo);
8 //~^ ERROR `foo` does not live long enough
9 let read = &refcell as &RefCell<dyn Read>;
10 //~^ ERROR lifetime may not live long enough
15 fn read_thing(refcell: &RefCell<dyn Read>) {}