summary refs log blame commit diff stats
path: root/src/extra_tests.rs
blob: 8aed5a98282e8bc8266e7bdda0642e4dd957f245 (plain) (tree)
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
//!     });
//! }
//! ```