@@ -20,7 +20,7 @@ LL | const Y: u32 = foo(0-1);
20
20
| |
21
21
| attempt to subtract with overflow
22
22
23
- warning: referenced constant
23
+ warning: referenced constant has errors
24
24
--> $DIR/issue-43197.rs:24:23
25
25
|
26
26
LL | const X: u32 = 0-1;
@@ -35,7 +35,7 @@ warning: this expression will panic at runtime
35
35
LL | println!("{} {}", X, Y);
36
36
| ^ referenced constant has errors
37
37
38
- warning: referenced constant
38
+ warning: referenced constant has errors
39
39
--> $DIR/issue-43197.rs:24:26
40
40
|
41
41
LL | const Y: u32 = foo(0-1);
@@ -50,7 +50,7 @@ warning: this expression will panic at runtime
50
50
LL | println!("{} {}", X, Y);
51
51
| ^ referenced constant has errors
52
52
53
- error[E0080]: referenced constant
53
+ error[E0080]: referenced constant has errors
54
54
--> $DIR/issue-43197.rs:24:5
55
55
|
56
56
LL | const X: u32 = 0-1;
@@ -71,7 +71,7 @@ LL | println!("{} {}", X, Y);
71
71
|
72
72
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
73
73
74
- error[E0080]: referenced constant
74
+ error[E0080]: referenced constant has errors
75
75
--> $DIR/issue-43197.rs:24:26
76
76
|
77
77
LL | const Y: u32 = foo(0-1);
@@ -86,7 +86,7 @@ error[E0080]: erroneous constant used
86
86
LL | println!("{} {}", X, Y);
87
87
| ^ referenced constant has errors
88
88
89
- error[E0080]: referenced constant
89
+ error[E0080]: referenced constant has errors
90
90
--> $DIR/issue-43197.rs:24:23
91
91
|
92
92
LL | const X: u32 = 0-1;
0 commit comments