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