about summary refs log tree commit diff
path: root/tests/ui/consts/required-consts/collect-in-promoted-const.opt.stderr
blob: 5c3edf68d95f78f4f703ca075b6d84d08ceb8959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
error[E0080]: evaluation panicked: explicit panic
  --> $DIR/collect-in-promoted-const.rs:9:19
   |
LL |     const C: () = panic!();
   |                   ^^^^^^^^ evaluation of `Fail::<T>::C` failed here

note: erroneous constant encountered
  --> $DIR/collect-in-promoted-const.rs:20:21
   |
LL |         let _val = &Fail::<T>::C;
   |                     ^^^^^^^^^^^^

error[E0080]: evaluation panicked: explicit panic
  --> $DIR/collect-in-promoted-const.rs:9:19
   |
LL |     const C: () = panic!();
   |                   ^^^^^^^^ evaluation of `Fail::<i32>::C` failed here

note: erroneous constant encountered
  --> $DIR/collect-in-promoted-const.rs:20:21
   |
LL |         let _val = &Fail::<T>::C;
   |                     ^^^^^^^^^^^^
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

note: the above error was encountered while instantiating `fn f::<i32>`
  --> $DIR/collect-in-promoted-const.rs:25:5
   |
LL |     f::<i32>();
   |     ^^^^^^^^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0080`.