about summary refs log tree commit diff
path: root/src/libstd/local_data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/local_data.rs')
-rw-r--r--src/libstd/local_data.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstd/local_data.rs b/src/libstd/local_data.rs
index a117d461cfd..711ed15fa9d 100644
--- a/src/libstd/local_data.rs
+++ b/src/libstd/local_data.rs
@@ -273,3 +273,11 @@ fn test_static_pointer() {
         set(key, @&VALUE);
     }
 }
+
+#[test]
+fn test_owned() {
+    unsafe {
+        fn key(_x: ~int) { }
+        set(key, ~1);
+    }
+}