|
| 1 | +error[E0261]: use of undeclared lifetime name `'b` |
| 2 | + --> $DIR/issue-119209.rs:2:43 |
| 3 | + | |
| 4 | +LL | fn main<'a, 'main>(i: &'a i32) -> Foo<'a, 'b> {} |
| 5 | + | - ^^ undeclared lifetime |
| 6 | + | | |
| 7 | + | help: consider introducing lifetime `'b` here: `'b,` |
| 8 | + |
| 9 | +error[E0658]: `impl Trait` in type aliases is unstable |
| 10 | + --> $DIR/issue-119209.rs:1:26 |
| 11 | + | |
| 12 | +LL | type Foo<'a, 'b> = (i32, impl PartialEq); |
| 13 | + | ^^^^^^^^^^^^^^ |
| 14 | + | |
| 15 | + = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information |
| 16 | + = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable |
| 17 | + |
| 18 | +error[E0308]: mismatched types |
| 19 | + --> $DIR/issue-119209.rs:2:35 |
| 20 | + | |
| 21 | +LL | fn main<'a, 'main>(i: &'a i32) -> Foo<'a, 'b> {} |
| 22 | + | ---- ^^^^^^^^^^^ expected `(i32, _)`, found `()` |
| 23 | + | | |
| 24 | + | implicitly returns `()` as its body has no tail or `return` expression |
| 25 | + | |
| 26 | + = note: expected tuple `(i32, _)` |
| 27 | + found unit type `()` |
| 28 | + |
| 29 | +error[E0131]: `main` function return type is not allowed to have generic parameters |
| 30 | + --> $DIR/issue-119209.rs:2:35 |
| 31 | + | |
| 32 | +LL | fn main<'a, 'main>(i: &'a i32) -> Foo<'a, 'b> {} |
| 33 | + | ^^^^^^^^^^^ |
| 34 | + |
| 35 | +error: aborting due to 4 previous errors |
| 36 | + |
| 37 | +Some errors have detailed explanations: E0131, E0261, E0308, E0658. |
| 38 | +For more information about an error, try `rustc --explain E0131`. |
0 commit comments