// 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! errors_everywhere { ($ty:ty <) => () //~ ERROR `$ty:ty` is followed by `<`, which is not allowed for `ty` fragments ($ty:ty < foo ,) => () //~ ERROR `$ty:ty` is followed by `<`, which is not allowed for `ty` ($ty:ty , ) => () ( ( $ty:ty ) ) => () ( { $ty:ty } ) => () ( [ $ty:ty ] ) => () ($bl:block < ) => () ($pa:pat >) => () //~ ERROR `$pa:pat` is followed by `>` which is not allowed for `pat` ($pa:pat , ) => () ($pa:pat | ) => () ($pa:pat $pb:pat $ty:ty ,) => () ($($ty:ty)-+) => () //~ ERROR `$ty:ty` is followed by `-` which is not allowed for `ty` } fn main() { }