about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuqman Aden <me@luqman.ca>2013-06-09 07:41:12 -0400
committerLuqman Aden <me@luqman.ca>2013-06-09 08:00:52 -0400
commit0bf6d9e9ef0140bdf30ab7814bfac1e6f5157335 (patch)
treecef63d5f2f4b01d8182f42cbf63588a913c9e3fa
parent618558a70f05595599503bbf09c9ad6a8a412356 (diff)
downloadrust-0bf6d9e9ef0140bdf30ab7814bfac1e6f5157335.tar.gz
rust-0bf6d9e9ef0140bdf30ab7814bfac1e6f5157335.zip
Add test for #4228.
-rw-r--r--src/test/run-pass/issue-4228.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-4228.rs b/src/test/run-pass/issue-4228.rs
new file mode 100644
index 00000000000..8cae8dd7915
--- /dev/null
+++ b/src/test/run-pass/issue-4228.rs
@@ -0,0 +1,23 @@
+// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+struct Foo;
+
+impl Foo {
+    fn first() {}
+}
+impl Foo {
+    fn second() {}
+}
+
+pub fn main() {
+    Foo::first();
+    Foo::second();
+}