mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
14 lines
296 B
Rust
14 lines
296 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
|
|
//~| ERROR lifetime bound not satisfied
|
|
}
|
|
|
|
fn main() {
|
|
}
|