]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0227.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0227.rs
1 trait Foo<'foo>: 'foo {}
2 trait Bar<'bar>: 'bar {}
3
4 trait FooBar<'foo, 'bar>: Foo<'foo> + Bar<'bar> {}
5
6 struct Baz<'foo, 'bar> {
7     baz: dyn FooBar<'foo, 'bar>,
8     //~^ ERROR ambiguous lifetime bound, explicit lifetime bound required
9 }
10
11 fn main() {
12 }