From 6de3cdc0e0794c55c1e4368467caf7a2206b5933 Mon Sep 17 00:00:00 2001 From: Johannes Oertel Date: Wed, 6 May 2015 00:50:05 +0200 Subject: [PATCH] Add regression test for #22463 Closes #22463. --- src/test/run-pass/issue-22463.rs | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/test/run-pass/issue-22463.rs diff --git a/src/test/run-pass/issue-22463.rs b/src/test/run-pass/issue-22463.rs new file mode 100644 index 00000000000..3aeb92f0bec --- /dev/null +++ b/src/test/run-pass/issue-22463.rs @@ -0,0 +1,29 @@ +// Copyright 2015 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. + +macro_rules! items { + () => { + type A = (); + fn a() {} + } +} + +trait Foo { + type A; + fn a(); +} + +impl Foo for () { + items!(); +} + +fn main() { + +}