You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/ui/consts/required-consts/collect-in-promoted-const.noopt.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@ LL | const C: () = panic!();
7
7
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
8
8
9
9
note: erroneous constant encountered
10
-
--> $DIR/collect-in-promoted-const.rs:20:21
10
+
--> $DIR/collect-in-promoted-const.rs:17:21
11
11
|
12
12
LL | let _val = &Fail::<T>::C;
13
13
| ^^^^^^^^^^^^
14
14
15
15
note: the above error was encountered while instantiating `fn f::<i32>`
| ^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/collect-in-promoted-const.rs:9:19
6
-
|
7
-
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
8
-
9
-
note: erroneous constant encountered
10
-
--> $DIR/collect-in-promoted-const.rs:20:21
11
-
|
12
-
LL | let _val = &Fail::<T>::C;
13
-
| ^^^^^^^^^^^^
14
-
15
1
error[E0080]: evaluation of `Fail::<i32>::C` failed
16
2
--> $DIR/collect-in-promoted-const.rs:9:19
17
3
|
@@ -21,19 +7,17 @@ LL | const C: () = panic!();
21
7
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
22
8
23
9
note: erroneous constant encountered
24
-
--> $DIR/collect-in-promoted-const.rs:20:21
10
+
--> $DIR/collect-in-promoted-const.rs:17:21
25
11
|
26
12
LL | let _val = &Fail::<T>::C;
27
13
| ^^^^^^^^^^^^
28
-
|
29
-
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
30
14
31
15
note: the above error was encountered while instantiating `fn f::<i32>`
32
-
--> $DIR/collect-in-promoted-const.rs:25:5
16
+
--> $DIR/collect-in-promoted-const.rs:22:5
33
17
|
34
18
LL | f::<i32>();
35
19
| ^^^^^^^^^^
36
20
37
-
error: aborting due to 2 previous errors
21
+
error: aborting due to 1 previous error
38
22
39
23
For more information about this error, try `rustc --explain E0080`.
0 commit comments