diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-07-17 18:28:48 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-07-28 02:16:11 +0000 |
| commit | 448550223b4e80d722c18361c465a24889e37c40 (patch) | |
| tree | 913ec0e6cc5618bc311ef05f959ff563582b2006 /src/test/compile-fail | |
| parent | 41745f30f751364bdce14428b7d3ffa5dd028903 (diff) | |
| download | rust-448550223b4e80d722c18361c465a24889e37c40.tar.gz rust-448550223b4e80d722c18361c465a24889e37c40.zip | |
Add regression test
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/macro-tt-matchers.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/compile-fail/macro-tt-matchers.rs b/src/test/compile-fail/macro-tt-matchers.rs new file mode 100644 index 00000000000..f41da77ee98 --- /dev/null +++ b/src/test/compile-fail/macro-tt-matchers.rs @@ -0,0 +1,20 @@ +// Copyright 2016 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. + +#![feature(rustc_attrs)] + +macro_rules! foo { + ($x:tt) => (type Alias = $x<i32>;) +} + +foo!(Box); + +#[rustc_error] +fn main() {} //~ ERROR compilation successful |
