1 2 3 4 5 6 7 8 9 10 11 12 13 14
//! Extra tests! //! //! ```compile_fail //! use std::mem; //! use hexchat_unsafe_plugin::PluginHandle; //! //! fn prepoop_your_pants_pluginhandle<'ph>(ph: &mut PluginHandle<'ph>) { //! let temporary: String = "Hello, world!".to_string(); //! let hook = ph.hook_timer(0, |_| { //! println!("{}", temporary); //! true //! }); //! } //! ```