1 This error indicates that the compiler is unable to determine whether there is
2 exactly one unique region in the set of derived region bounds.
4 Example of erroneous code:
7 trait Foo<'foo>: 'foo {}
8 trait Bar<'bar>: 'bar {}
10 trait FooBar<'foo, 'bar>: Foo<'foo> + Bar<'bar> {}
12 struct Baz<'foo, 'bar> {
13 baz: dyn FooBar<'foo, 'bar>,
17 Here, `baz` can have either `'foo` or `'bar` lifetimes.
19 To resolve this error, provide an explicit lifetime:
22 trait Foo<'foo>: 'foo {}
23 trait Bar<'bar>: 'bar {}
25 trait FooBar<'foo, 'bar>: Foo<'foo> + Bar<'bar> {}
27 struct Baz<'foo, 'bar, 'baz>
31 obj: dyn FooBar<'foo, 'bar> + 'baz,