]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic3.stderr
Rollup merge of #95040 - frank-king:fix/94981, r=Mark-Simulacrum
[rust.git] / src / test / ui / object-lifetime / object-lifetime-default-dyn-binding-nonstatic3.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-nonstatic3.rs:16:36
3    |
4 LL | fn bar(x: &str) -> &dyn Foo<Item = dyn Bar> { &() }
5    |                                    ^^^^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0228`.