diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-09-03 01:58:36 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-09-03 01:58:36 +0200 |
| commit | ba1f44d24fd740bf9f74f99ffcd4733151b84fab (patch) | |
| tree | 84ef63268f6cfb5e79de93c00f712866c2fd3690 | |
| parent | 4fa28a2e855fc47cea8475000a15e2df24799e12 (diff) | |
| download | rust-ba1f44d24fd740bf9f74f99ffcd4733151b84fab.tar.gz rust-ba1f44d24fd740bf9f74f99ffcd4733151b84fab.zip | |
Regression test for #8468.
| -rw-r--r-- | src/test/run-pass/default-method-parsing.rs | 15 |
1 files changed, 15 insertions, 0 deletions
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 00000000000..ec607102566 --- /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 <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. + +trait Foo { + fn m(&self, _:int) { } +} + +fn main() { } |
