about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-09-06 23:35:57 -0700
committerbors <bors@rust-lang.org>2013-09-06 23:35:57 -0700
commit124eb2119c78651cfaaa7a046a101fa2e20f83ca (patch)
tree7efa84a80df29080ae0314d0e3788131c72bdceb /src/libstd
parent3e6de6b7da8ee88bf84b0e217900051334be08da (diff)
parentb6f3d3f24546a525d1eb80923692c1296eddc4dc (diff)
downloadrust-124eb2119c78651cfaaa7a046a101fa2e20f83ca.tar.gz
rust-124eb2119c78651cfaaa7a046a101fa2e20f83ca.zip
auto merge of #9026 : jbclements/rust/let-var-hygiene, r=jbclements
This is a rebase of my approved pull request from ... the end of June? It introduces hygiene for let-bound variables.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/to_bytes.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstd/to_bytes.rs b/src/libstd/to_bytes.rs
index 01f57c231da..e3615b7b7db 100644
--- a/src/libstd/to_bytes.rs
+++ b/src/libstd/to_bytes.rs
@@ -375,3 +375,13 @@ impl<A:IterBytes> ToBytes for A {
         }
     }
 }
+
+#[cfg(test)]
+mod test {
+    use super::*;
+    // just test to see if it compiles:
+    #[test] fn iterbytes_compiles () {
+        takes_iterbytes((3,4,5,false));
+    }
+    fn takes_iterbytes<T : IterBytes>(x : T) {}
+}