]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gates/feature-gate-member-constraints.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / feature-gates / feature-gate-member-constraints.stderr
CommitLineData
dc9dc135
XL
1error: ambiguous lifetime bound in `impl Trait`
2 --> $DIR/feature-gate-member-constraints.rs:4:43
3 |
4LL | fn foo<'a, 'b>(x: &'a u32, y: &'b u32) -> impl Trait<'a, 'b> {
5 | ^^^^^^^^^^^^^^^^^^ neither `'a` nor `'b` outlives the other
6 |
7 = help: add #![feature(member_constraints)] to the crate attributes to enable
8
74b04a01
XL
9error: ambiguous lifetime bound in `impl Trait`
10 --> $DIR/feature-gate-member-constraints.rs:4:43
11 |
12LL | fn foo<'a, 'b>(x: &'a u32, y: &'b u32) -> impl Trait<'a, 'b> {
13 | ^^^^^^^^^^^^^^^^^^ the elided lifetimes here do not outlive one another
14 |
15 = help: add #![feature(member_constraints)] to the crate attributes to enable
16
17error: aborting due to 2 previous errors
dc9dc135 18