]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-lifetime/object-lifetime-default-ambiguous.stderr
Auto merge of #55113 - mockersf:master, r=estebank
[rust.git] / src / test / 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:33:27
3    |
4 LL | fn a<'a,'b>(t: Ref2<'a,'b,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:37:14
9    |
10 LL | fn b(t: Ref2<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:53:15
15    |
16 LL | fn f(t: &Ref2<Test>) {
17    |               ^^^^
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0228`.