|
1 | | -thread 'main' panicked at /home/nadrieril/.cargo/registry/src/index.crates.io-6f17d22bba15001f/index_vec-0.1.4/src/indexing.rs:37:10: |
2 | | -index out of bounds: the len is 1 but the index is 1 |
3 | | -note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace |
4 | | -ERROR Compilation panicked |
| 1 | +# Final LLBC before serialization: |
| 2 | + |
| 3 | +#[lang_item("sized")] |
| 4 | +pub trait core::marker::Sized<Self> |
| 5 | + |
| 6 | +pub trait test_crate::PrimeField<Self, Self_Repr> |
| 7 | +{ |
| 8 | + parent_clause0 : [@TraitClause0]: core::marker::Sized<Self_Repr> |
| 9 | +} |
| 10 | + |
| 11 | +pub struct test_crate::SqrtTables<F> |
| 12 | + where |
| 13 | + [@TraitClause0]: core::marker::Sized<F>, |
| 14 | + = |
| 15 | +{ |
| 16 | + F, |
| 17 | +} |
| 18 | + |
| 19 | +fn test_crate::{test_crate::SqrtTables<F>[@TraitClause0]}::sqrt_common::closure<'_0, F, Clause1_Repr>(@1: &'_0 (()), @2: ()) |
| 20 | +where |
| 21 | + [@TraitClause0]: core::marker::Sized<F>, |
| 22 | + [@TraitClause1]: test_crate::PrimeField<F, Clause1_Repr>, |
| 23 | +{ |
| 24 | + let @0: (); // return |
| 25 | + let state@1: &'_0 (()); // arg #1 |
| 26 | + let _x@2: (); // arg #2 |
| 27 | + |
| 28 | + @0 := () |
| 29 | + @0 := () |
| 30 | + return |
| 31 | +} |
| 32 | + |
| 33 | +pub fn test_crate::{test_crate::SqrtTables<F>[@TraitClause0]}::sqrt_common<F, Clause1_Repr>() |
| 34 | +where |
| 35 | + [@TraitClause0]: core::marker::Sized<F>, |
| 36 | + [@TraitClause1]: test_crate::PrimeField<F, Clause1_Repr>, |
| 37 | +{ |
| 38 | + let @0: (); // return |
| 39 | + let _closure@1: fn(()); // local |
| 40 | + |
| 41 | + _closure@1 := {test_crate::{test_crate::SqrtTables<F>[@TraitClause0]}::sqrt_common::closure<F, Clause1_Repr>[@TraitClause0, @TraitClause1]} {} |
| 42 | + @fake_read(_closure@1) |
| 43 | + @0 := () |
| 44 | + drop _closure@1 |
| 45 | + @0 := () |
| 46 | + return |
| 47 | +} |
| 48 | + |
| 49 | + |
| 50 | + |
0 commit comments