about summary refs log tree commit diff
path: root/tests/ui/consts/required-consts/collect-in-promoted-const.noopt.stderr
blob: 67f5009c4ffcfd2fb3de93ca9334b20a9115662c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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: 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 1 previous error

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