From 3c011aab74547a590a5efe3d93bb9e8bfcc0c252 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Fri, 13 Jul 2012 13:03:21 -0700 Subject: [PATCH] Extra test for #2311 --- src/test/run-pass/issue-2311-2.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/test/run-pass/issue-2311-2.rs diff --git a/src/test/run-pass/issue-2311-2.rs b/src/test/run-pass/issue-2311-2.rs new file mode 100644 index 00000000000..d9a68bcf7a0 --- /dev/null +++ b/src/test/run-pass/issue-2311-2.rs @@ -0,0 +1,10 @@ +iface clam { } +class foo { + let x: A; + new(b: A) { self.x = b; } + fn bar>(c: C) -> B { + fail; + } +} + +fn main() { }