fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0601]: `main` function not found in crate `continue_after_missing_main` 2 --> $DIR/continue-after-missing-main.rs:1:1 3 | 4LL | / #![allow(dead_code)] 5LL | | 6LL | | struct Tableau<'a, MP> { 7LL | | provider: &'a MP, 8... | 9LL | | 10LL | | } 11 | |_^ consider adding a `main` function to `$DIR/continue-after-missing-main.rs` 12 13error[E0623]: lifetime mismatch 14 --> $DIR/continue-after-missing-main.rs:28:56 15 | 16LL | tableau: Tableau<'data_provider, AdaptedMatrixProvider<'original_data, MP>>, 17 | ------------------------------------------------------------------ these two types are declared with different lifetimes... 18LL | ) { 19LL | let _: AdaptedMatrixProvider<'original_data, MP> = tableau.provider().clone_with_extra_bound(); 20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...but data from `tableau` flows into `tableau` here 21 22error: aborting due to 2 previous errors 23 24Some errors have detailed explanations: E0601, E0623. 25For more information about an error, try `rustc --explain E0601`.