]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/multiple-lifetimes/error-handling.full_tait.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / impl-trait / multiple-lifetimes / error-handling.full_tait.stderr
CommitLineData
6a06907d
XL
1warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/error-handling.rs:6:32
3 |
4LL | #![cfg_attr(full_tait, feature(type_alias_impl_trait))]
5 | ^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
9
10error: lifetime may not live long enough
11 --> $DIR/error-handling.rs:26:16
12 |
13LL | fn foo<'a, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> {
14 | -- -- lifetime `'b` defined here
15 | |
16 | lifetime `'a` defined here
17...
18LL | let _: &'b i32 = *u.0;
19 | ^^^^^^^ type annotation requires that `'a` must outlive `'b`
20 |
21 = help: consider adding the following bound: `'a: 'b`
22
23error: aborting due to previous error; 1 warning emitted
24