Skip to content

Commit 98ab898

Browse files
committed
tests: ui/inline-consts: add issue number to a test, rename other tests from a_b_c to a-b-c
1 parent 76fd471 commit 98ab898

7 files changed

+11
-11
lines changed

tests/ui/inline-const/cross_const_control_flow.stderr tests/ui/inline-const/cross-const-control-flow-125846.stderr

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0767]: use of unreachable label `'a`
2-
--> $DIR/cross_const_control_flow.rs:9:25
2+
--> $DIR/cross-const-control-flow-125846.rs:9:25
33
|
44
LL | 'a: { const { break 'a } }
55
| -- ^^ unreachable label `'a`
@@ -9,7 +9,7 @@ LL | 'a: { const { break 'a } }
99
= note: labels are unreachable through functions, closures, async blocks and modules
1010

1111
error[E0767]: use of unreachable label `'a`
12-
--> $DIR/cross_const_control_flow.rs:22:28
12+
--> $DIR/cross-const-control-flow-125846.rs:22:28
1313
|
1414
LL | 'a: { const { continue 'a } }
1515
| -- ^^ unreachable label `'a`
@@ -19,7 +19,7 @@ LL | 'a: { const { continue 'a } }
1919
= note: labels are unreachable through functions, closures, async blocks and modules
2020

2121
error[E0435]: attempt to use a non-constant value in a constant
22-
--> $DIR/cross_const_control_flow.rs:41:14
22+
--> $DIR/cross-const-control-flow-125846.rs:41:14
2323
|
2424
LL | const { &x };
2525
| ^ non-constant value
@@ -30,7 +30,7 @@ LL | const x: /* Type */ = 1;
3030
| ~~~~~ ++++++++++++
3131

3232
error[E0728]: `await` is only allowed inside `async` functions and blocks
33-
--> $DIR/cross_const_control_flow.rs:35:22
33+
--> $DIR/cross-const-control-flow-125846.rs:35:22
3434
|
3535
LL | const { async {}.await }
3636
| -----------^^^^^--
@@ -39,31 +39,31 @@ LL | const { async {}.await }
3939
| this is not `async`
4040

4141
error[E0268]: `break` outside of a loop or labeled block
42-
--> $DIR/cross_const_control_flow.rs:9:19
42+
--> $DIR/cross-const-control-flow-125846.rs:9:19
4343
|
4444
LL | 'a: { const { break 'a } }
4545
| ^^^^^^^^ cannot `break` outside of a loop or labeled block
4646

4747
error[E0268]: `break` outside of a loop or labeled block
48-
--> $DIR/cross_const_control_flow.rs:16:17
48+
--> $DIR/cross-const-control-flow-125846.rs:16:17
4949
|
5050
LL | const { break }
5151
| ^^^^^ cannot `break` outside of a loop or labeled block
5252

5353
error[E0268]: `continue` outside of a loop
54-
--> $DIR/cross_const_control_flow.rs:22:19
54+
--> $DIR/cross-const-control-flow-125846.rs:22:19
5555
|
5656
LL | 'a: { const { continue 'a } }
5757
| ^^^^^^^^^^^ cannot `continue` outside of a loop
5858

5959
error[E0268]: `continue` outside of a loop
60-
--> $DIR/cross_const_control_flow.rs:29:17
60+
--> $DIR/cross-const-control-flow-125846.rs:29:17
6161
|
6262
LL | const { continue }
6363
| ^^^^^^^^ cannot `continue` outside of a loop
6464

6565
error[E0572]: return statement outside of function body
66-
--> $DIR/cross_const_control_flow.rs:4:13
66+
--> $DIR/cross-const-control-flow-125846.rs:4:13
6767
|
6868
LL | / fn foo() {
6969
LL | | const { return }

tests/ui/inline-const/referencing_local_variables.stderr tests/ui/inline-const/referencing-local-variables.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0435]: attempt to use a non-constant value in a constant
2-
--> $DIR/referencing_local_variables.rs:2:13
2+
--> $DIR/referencing-local-variables.rs:2:13
33
|
44
LL | const fn test_me<T>(a: usize) -> usize {
55
| - this would need to be a `const`
File renamed without changes.

tests/ui/inline-const/uninit_local.stderr tests/ui/inline-const/uninit-local.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0381]: used binding `x` isn't initialized
2-
--> $DIR/uninit_local.rs:4:15
2+
--> $DIR/uninit-local.rs:4:15
33
|
44
LL | let x: bool;
55
| - binding declared here but left uninitialized

0 commit comments

Comments
 (0)