]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic3.stderr
use static as object-lifetime default for type XX in `Foo<Item=XX>`
[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