@@ -365,11 +365,11 @@ LL | #[cfg(FALSE)] fn e() { match 0 { 0..=#[attr] 10 => () } }
365
365
|
366
366
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
367
367
368
- error: expected one of `,`, ` =>`, `if`, `|`, or `} `, found `#`
368
+ error: expected one of `=>`, `if`, or `| `, found `#`
369
369
--> $DIR/attr-stmt-expr-attr-bad.rs:85:38
370
370
|
371
371
LL | #[cfg(FALSE)] fn e() { match 0 { 0..=#[attr] 10 => () } }
372
- | ^ expected one of `,`, ` =>`, `if`, `|`, or `} `
372
+ | ^ expected one of `=>`, `if`, or `| `
373
373
374
374
error[E0586]: inclusive range with no end
375
375
--> $DIR/attr-stmt-expr-attr-bad.rs:88:35
@@ -379,11 +379,11 @@ LL | #[cfg(FALSE)] fn e() { match 0 { 0..=#[attr] -10 => () } }
379
379
|
380
380
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
381
381
382
- error: expected one of `,`, ` =>`, `if`, `|`, or `} `, found `#`
382
+ error: expected one of `=>`, `if`, or `| `, found `#`
383
383
--> $DIR/attr-stmt-expr-attr-bad.rs:88:38
384
384
|
385
385
LL | #[cfg(FALSE)] fn e() { match 0 { 0..=#[attr] -10 => () } }
386
- | ^ expected one of `,`, ` =>`, `if`, `|`, or `} `
386
+ | ^ expected one of `=>`, `if`, or `| `
387
387
388
388
error: unexpected token: `#`
389
389
--> $DIR/attr-stmt-expr-attr-bad.rs:91:39
@@ -399,11 +399,11 @@ LL | #[cfg(FALSE)] fn e() { match 0 { 0..=#[attr] FOO => () } }
399
399
|
400
400
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
401
401
402
- error: expected one of `,`, ` =>`, `if`, `|`, or `} `, found `#`
402
+ error: expected one of `=>`, `if`, or `| `, found `#`
403
403
--> $DIR/attr-stmt-expr-attr-bad.rs:93:38
404
404
|
405
405
LL | #[cfg(FALSE)] fn e() { match 0 { 0..=#[attr] FOO => () } }
406
- | ^ expected one of `,`, ` =>`, `if`, `|`, or `} `
406
+ | ^ expected one of `=>`, `if`, or `| `
407
407
408
408
error: unexpected token: `#`
409
409
--> $DIR/attr-stmt-expr-attr-bad.rs:97:34
0 commit comments