diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2022-04-17 19:27:13 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2022-04-17 19:27:13 -0300 |
commit | 01c6e6c4b6c81cfe55a543598daa9b7b8fb331e0 (patch) | |
tree | 432a226493331763df269e4f08ebe0addccb191d /src/extra_tests.rs | |
parent | 2772887c9ea3676149bc37b5b296bd85ae0c9e1c (diff) |
Fix LtPhPtr variance
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 +//! }); +//! } +//! ``` |