summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0227.rs
blob: 0f0a781d2f9d30b46dc24369cb7b7e29aa6f9f45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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() {
}