mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
11 lines
251 B
Rust
11 lines
251 B
Rust
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() {}
|