aboutsummaryrefslogtreecommitdiff
path: root/examples/named/interfaces/weapon.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/named/interfaces/weapon.rs')
-rw-r--r--examples/named/interfaces/weapon.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/named/interfaces/weapon.rs b/examples/named/interfaces/weapon.rs
new file mode 100644
index 0000000..7848a0f
--- /dev/null
+++ b/examples/named/interfaces/weapon.rs
@@ -0,0 +1,4 @@
+pub trait IWeapon
+{
+ fn use_it(&self);
+}