From 01c6e6c4b6c81cfe55a543598daa9b7b8fb331e0 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sun, 17 Apr 2022 19:27:13 -0300 Subject: Fix LtPhPtr variance --- src/extra_tests.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/extra_tests.rs (limited to 'src/extra_tests.rs') 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 +//! }); +//! } +//! ``` -- cgit 1.4.1