summary refs log tree commit diff stats
path: root/src/extra_tests.rs
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-04-17 19:27:13 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-04-17 19:27:13 -0300
commit01c6e6c4b6c81cfe55a543598daa9b7b8fb331e0 (patch)
tree432a226493331763df269e4f08ebe0addccb191d /src/extra_tests.rs
parent2772887c9ea3676149bc37b5b296bd85ae0c9e1c (diff)
Fix LtPhPtr variance
Diffstat (limited to 'src/extra_tests.rs')
-rw-r--r--src/extra_tests.rs14
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
+//!     });
+//! }
+//! ```