]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic2.stderr
Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt
[rust.git] / src / test / ui / object-lifetime / object-lifetime-default-dyn-binding-nonstatic2.stderr
1 error[E0228]: the lifetime bound for this object type cannot be deduced from context; please supply an explicit bound
2   --> $DIR/object-lifetime-default-dyn-binding-nonstatic2.rs:20:50
3    |
4 LL | fn bar<'a>(x: &'a str) -> &'a dyn Foo<'a, Item = dyn Bar> { &() }
5    |                                                  ^^^^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0228`.