summary refs log tree commit diff
path: root/src/test/ui/continue-after-missing-main.stderr
blob: 439f9e5221f66556693b50b3af78f0f090866dac (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
error[E0601]: `main` function not found in crate `continue_after_missing_main`
  --> $DIR/continue-after-missing-main.rs:1:1
   |
LL | / #![allow(dead_code)]
LL | |
LL | | struct Tableau<'a, MP> {
LL | |     provider: &'a MP,
...  |
LL | |
LL | | }
   | |_^ consider adding a `main` function to `$DIR/continue-after-missing-main.rs`

error[E0623]: lifetime mismatch
  --> $DIR/continue-after-missing-main.rs:28:56
   |
LL |     tableau: Tableau<'data_provider, AdaptedMatrixProvider<'original_data, MP>>,
   |              ------------------------------------------------------------------ these two types are declared with different lifetimes...
LL | ) {
LL |     let _: AdaptedMatrixProvider<'original_data, MP> = tableau.provider().clone_with_extra_bound();
   |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...but data from `tableau` flows into `tableau` here

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0601, E0623.
For more information about an error, try `rustc --explain E0601`.