From ba1f44d24fd740bf9f74f99ffcd4733151b84fab Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Tue, 3 Sep 2013 01:58:36 +0200 Subject: [PATCH] Regression test for #8468. --- src/test/run-pass/default-method-parsing.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/test/run-pass/default-method-parsing.rs diff --git a/src/test/run-pass/default-method-parsing.rs b/src/test/run-pass/default-method-parsing.rs new file mode 100644 index 0000000000000..ec607102566aa --- /dev/null +++ b/src/test/run-pass/default-method-parsing.rs @@ -0,0 +1,15 @@ +// 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +trait Foo { + fn m(&self, _:int) { } +} + +fn main() { }