summary refs log tree commit diff
path: root/src/test/ui/feature-gates/feature-gate-member-constraints.stderr
blob: c2ec7ae16a3a6a97f1008362a5b64ff38486baa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: ambiguous lifetime bound in `impl Trait`
  --> $DIR/feature-gate-member-constraints.rs:4:43
   |
LL | fn foo<'a, 'b>(x: &'a u32, y: &'b u32) -> impl Trait<'a, 'b> {
   |                                           ^^^^^^^^^^^^^^^^^^ neither `'a` nor `'b` outlives the other
   |
   = help: add #![feature(member_constraints)] to the crate attributes to enable

error: ambiguous lifetime bound in `impl Trait`
  --> $DIR/feature-gate-member-constraints.rs:4:43
   |
LL | fn foo<'a, 'b>(x: &'a u32, y: &'b u32) -> impl Trait<'a, 'b> {
   |                                           ^^^^^^^^^^^^^^^^^^ the elided lifetimes here do not outlive one another
   |
   = help: add #![feature(member_constraints)] to the crate attributes to enable

error: aborting due to 2 previous errors