]> git.lizzy.rs Git - rust.git/blob - tests/ui/object-lifetime/object-lifetime-default-ambiguous.stderr
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / ui / object-lifetime / object-lifetime-default-ambiguous.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-ambiguous.rs:23:28
3    |
4 LL | fn a<'a,'b>(t: Ref2<'a,'b, dyn Test>) {
5    |                            ^^^^^^^^
6
7 error[E0228]: the lifetime bound for this object type cannot be deduced from context; please supply an explicit bound
8   --> $DIR/object-lifetime-default-ambiguous.rs:27:14
9    |
10 LL | fn b(t: Ref2<dyn Test>) {
11    |              ^^^^^^^^
12
13 error[E0228]: the lifetime bound for this object type cannot be deduced from context; please supply an explicit bound
14   --> $DIR/object-lifetime-default-ambiguous.rs:43:15
15    |
16 LL | fn f(t: &Ref2<dyn Test>) {
17    |               ^^^^^^^^
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0228`.