The compiler suggests I add a ‘static lifetime because the parameter type may not live long enough, but I don’t think that’s what I want

Check out the entire error: error[E0310]: the parameter type `U` may not live long enough –> src/main.rs:9:24 | 8 | fn add<U: Bar<T>>(&mut self, x: U) { | — help: consider adding an explicit lifetime bound `U: ‘static`… 9 | self.data.push(Box::new(x)); | ^^^^^^^^^^^ | note: …so that the type `U` will meet its required lifetime … Read more