From 9a89a7503d4451efe9f74a77bfa2125c5bc31d06 Mon Sep 17 00:00:00 2001 From: Lindsey Kuper Date: Tue, 29 May 2012 10:52:32 -0700 Subject: [PATCH] Clarify comments in test. --- src/test/run-pass/regions-fn-subtyping.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/run-pass/regions-fn-subtyping.rs b/src/test/run-pass/regions-fn-subtyping.rs index 3086725fd47e..e2a4b3146418 100644 --- a/src/test/run-pass/regions-fn-subtyping.rs +++ b/src/test/run-pass/regions-fn-subtyping.rs @@ -4,9 +4,10 @@ fn ok(f: fn@(x: &uint)) { // Here, g is a function that can accept a uint pointer with // lifetime r, and f is a function that can accept a uint pointer - // with any lifetime. The assignment g = f should be OK (i.e., f - // should be a subtype of g), because f can be used in any context - // that expects g's type. But this currently fails. + // with any lifetime. The assignment g = f should be OK (i.e., + // f's type should be a subtype of g's type), because f can be + // used in any context that expects g's type. But this currently + // fails. let mut g: fn@(y: &r.uint) = fn@(x: &r.uint) { }; g = f; }