]> git.lizzy.rs Git - rust.git/blob - tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic2.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / 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`.