diff options
Diffstat (limited to 'src/extra_tests.rs')
-rw-r--r-- | src/extra_tests.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/extra_tests.rs b/src/extra_tests.rs new file mode 100644 index 0000000..8aed5a9 --- /dev/null +++ b/src/extra_tests.rs @@ -0,0 +1,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 +//! }); +//! } +//! ``` |