Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error[E0309]: the parameter type `T` may not live long enough
- --> gstreamer-rtsp-server/src/r_t_s_p_media_factory.rs:15:132
- |
- 14 | fn add_role<'a, T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType> + StaticType>(&self, role: &str, v: T) {
- | -- help: consider adding an explicit lifetime bound `T: 'a`...
- 15 | ffi::gst_rtsp_media_factory_add_role(self.to_glib_none().0, role.to_glib_none().0, T::static_type().to_glib() as *const _, v.to_glib_none().0, ptr::null_mut::<u8>());
- | ^
- |
- note: ...so that the type `T` is not borrowed for too long
- --> gstreamer-rtsp-server/src/r_t_s_p_media_factory.rs:15:132
- |
- 15 | ffi::gst_rtsp_media_factory_add_role(self.to_glib_none().0, role.to_glib_none().0, T::static_type().to_glib() as *const _, v.to_glib_none().0, ptr::null_mut::<u8>());
- | ^
- error[E0309]: the parameter type `T` may not live long enough
- --> gstreamer-rtsp-server/src/r_t_s_p_media_factory.rs:15:134
- |
- 14 | fn add_role<'a, T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType> + StaticType>(&self, role: &str, v: T) {
- | -- help: consider adding an explicit lifetime bound `T: 'a`...
- 15 | ffi::gst_rtsp_media_factory_add_role(self.to_glib_none().0, role.to_glib_none().0, T::static_type().to_glib() as *const _, v.to_glib_none().0, ptr::null_mut::<u8>());
- | ^^^^^^^^^^^^
- |
- note: ...so that the reference type `&'a T` does not outlive the data it points at
- --> gstreamer-rtsp-server/src/r_t_s_p_media_factory.rs:15:134
- |
- 15 | ffi::gst_rtsp_media_factory_add_role(self.to_glib_none().0, role.to_glib_none().0, T::static_type().to_glib() as *const _, v.to_glib_none().0, ptr::null_mut::<u8>());
- | ^^^^^^^^^^^^
- error: aborting due to 2 previous errors
- error: Could not compile `gstreamer-rtsp-server`.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement