about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0227.rs
blob: bab6d8af476e3bbf135019ff0ed7b6db1ec5687f (plain)
1
2
3
4
5
6
7
8
9
10
11
trait Foo<'foo>: 'foo {}
trait Bar<'bar>: 'bar {}

trait FooBar<'foo, 'bar>: Foo<'foo> + Bar<'bar> {}

struct Baz<'foo, 'bar> {
    baz: dyn FooBar<'foo, 'bar>,
    //~^ ERROR ambiguous lifetime bound, explicit lifetime bound required
}

fn main() {}