aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-10-28 15:02:00 -0700
committerPatrick Walton <[email protected]>2010-10-28 15:02:00 -0700
commitee901858a27bf00c7dd66e7cfecb9dd97029dba8 (patch)
tree065039a8a875af53eb25f9698635142b934d2355 /src/lib
parentMerge branch 'gcc-4.5.1' of http://github.com/rillian/rust (diff)
downloadrust-ee901858a27bf00c7dd66e7cfecb9dd97029dba8.tar.xz
rust-ee901858a27bf00c7dd66e7cfecb9dd97029dba8.zip
rustboot: Emit an error instead of asserting in trans when a T is passed by value
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/list.rs b/src/lib/list.rs
index 7b861315..da8d3c0a 100644
--- a/src/lib/list.rs
+++ b/src/lib/list.rs
@@ -12,7 +12,7 @@ tag list[T] {
nil;
}
-fn foldl[T,U](&list[T] ls, U u, fn(&T t, U u) -> U f) -> U {
+fn foldl[T,U](&list[T] ls, &U u, fn(&T t, U u) -> U f) -> U {
alt(ls) {
case (cons[T](?hd, ?tl)) {
auto u_ = f(hd, u);