]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-10536.rs
Pass cflags rather than cxxflags to LLVM as CMAKE_C_FLAGS
[rust.git] / src / test / ui / issues / issue-10536.rs
1 // We only want to assert that this doesn't ICE, we don't particularly care
2 // about whether it nor it fails to compile.
3
4 macro_rules! foo{
5     () => {{
6         macro_rules! bar{() => (())}
7         1
8     }}
9 }
10
11 pub fn main() {
12     foo!();
13
14     assert!({one! two()});
15     //~^ ERROR macros that expand to items
16     //~| ERROR cannot find macro `one!` in this scope
17     //~| ERROR mismatched types
18
19     // regardless of whether nested macro_rules works, the following should at
20     // least throw a conventional error.
21     assert!({one! two});
22     //~^ ERROR expected `(` or `{`, found `}`
23 }