|
| 1 | +error[E0080]: evaluation of constant value failed |
| 2 | + --> $DIR/const-errs-dont-conflict-103369.rs:10:5 |
| 3 | + | |
| 4 | +LL | panic!("Some error occurred"); |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'Some error occurred', $DIR/const-errs-dont-conflict-103369.rs:10:5 |
| 6 | + | |
| 7 | +note: inside `my_fn` |
| 8 | + --> $DIR/const-errs-dont-conflict-103369.rs:10:5 |
| 9 | + | |
| 10 | +LL | panic!("Some error occurred"); |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 | +note: inside `<() as ConstGenericTrait<{my_fn(1)}>>::{constant#0}` |
| 13 | + --> $DIR/const-errs-dont-conflict-103369.rs:5:25 |
| 14 | + | |
| 15 | +LL | impl ConstGenericTrait<{my_fn(1)}> for () {} |
| 16 | + | ^^^^^^^^ |
| 17 | + = 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) |
| 18 | + |
| 19 | +error[E0080]: evaluation of constant value failed |
| 20 | + --> $DIR/const-errs-dont-conflict-103369.rs:10:5 |
| 21 | + | |
| 22 | +LL | panic!("Some error occurred"); |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'Some error occurred', $DIR/const-errs-dont-conflict-103369.rs:10:5 |
| 24 | + | |
| 25 | +note: inside `my_fn` |
| 26 | + --> $DIR/const-errs-dont-conflict-103369.rs:10:5 |
| 27 | + | |
| 28 | +LL | panic!("Some error occurred"); |
| 29 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 30 | +note: inside `<() as ConstGenericTrait<{my_fn(2)}>>::{constant#0}` |
| 31 | + --> $DIR/const-errs-dont-conflict-103369.rs:7:25 |
| 32 | + | |
| 33 | +LL | impl ConstGenericTrait<{my_fn(2)}> for () {} |
| 34 | + | ^^^^^^^^ |
| 35 | + = 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) |
| 36 | + |
| 37 | +error: aborting due to 2 previous errors |
| 38 | + |
| 39 | +For more information about this error, try `rustc --explain E0080`. |
0 commit comments