|
| 1 | +error: expected `{`, found `)` |
| 2 | + --> $DIR/no-close-delim-issue-139248.rs:3:38 |
| 3 | + | |
| 4 | +LL | thread_local! { static a : () = (if b) } |
| 5 | + | ^ expected `{` |
| 6 | + | |
| 7 | +note: the `if` expression is missing a block after this condition |
| 8 | + --> $DIR/no-close-delim-issue-139248.rs:3:37 |
| 9 | + | |
| 10 | +LL | thread_local! { static a : () = (if b) } |
| 11 | + | ^ |
| 12 | + |
| 13 | +error: expected `{`, found `)` |
| 14 | + --> $DIR/no-close-delim-issue-139248.rs:3:38 |
| 15 | + | |
| 16 | +LL | thread_local! { static a : () = (if b) } |
| 17 | + | ^ expected `{` |
| 18 | + | |
| 19 | +note: the `if` expression is missing a block after this condition |
| 20 | + --> $DIR/no-close-delim-issue-139248.rs:3:37 |
| 21 | + | |
| 22 | +LL | thread_local! { static a : () = (if b) } |
| 23 | + | ^ |
| 24 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 25 | + |
| 26 | +error: expected `{`, found `)` |
| 27 | + --> $DIR/no-close-delim-issue-139248.rs:3:38 |
| 28 | + | |
| 29 | +LL | thread_local! { static a : () = (if b) } |
| 30 | + | ^ expected `{` |
| 31 | + | |
| 32 | +note: the `if` expression is missing a block after this condition |
| 33 | + --> $DIR/no-close-delim-issue-139248.rs:3:37 |
| 34 | + | |
| 35 | +LL | thread_local! { static a : () = (if b) } |
| 36 | + | ^ |
| 37 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 38 | + |
| 39 | +error: expected expression, found end of macro arguments |
| 40 | + --> $DIR/no-close-delim-issue-139248.rs:3:1 |
| 41 | + | |
| 42 | +LL | thread_local! { static a : () = (if b) } |
| 43 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected expression |
| 44 | + --> $SRC_DIR/std/src/sys/thread_local/native/mod.rs:LL:COL |
| 45 | + | |
| 46 | + = note: while parsing argument for this `expr` macro fragment |
| 47 | + | |
| 48 | + = note: this error originates in the macro `thread_local` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 49 | + |
| 50 | +error: aborting due to 4 previous errors |
| 51 | + |
0 commit comments