]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc1623.stderr
Store Option<Region> as value for RegionVid
[rust.git] / src / test / ui / rfc1623.stderr
1 error[E0308]: mismatched types
2   --> $DIR/rfc1623.rs:24:8
3    |
4 LL |     f: &id,
5    |        ^^^ one type is more general than the other
6    |
7    = note: expected reference `&'a Foo<'b>`
8               found reference `&'a Foo<'b>`
9
10 error[E0308]: mismatched types
11   --> $DIR/rfc1623.rs:24:8
12    |
13 LL |     f: &id,
14    |        ^^^ one type is more general than the other
15    |
16    = note: expected reference `&'a Foo<'b>`
17               found reference `&'a Foo<'b>`
18
19 error[E0308]: mismatched types
20   --> $DIR/rfc1623.rs:24:8
21    |
22 LL |     f: &id,
23    |        ^^^ one type is more general than the other
24    |
25    = note: expected reference `&'a Foo<'b>`
26               found reference `&'a Foo<'b>`
27
28 error[E0308]: mismatched types
29   --> $DIR/rfc1623.rs:24:8
30    |
31 LL |     f: &id,
32    |        ^^^ one type is more general than the other
33    |
34    = note: expected reference `&'a Foo<'b>`
35               found reference `&'a Foo<'b>`
36
37 error: implementation of `FnOnce` is not general enough
38   --> $DIR/rfc1623.rs:24:8
39    |
40 LL |     f: &id,
41    |        ^^^ implementation of `FnOnce` is not general enough
42    |
43    = note: `fn(&'2 Foo<'_>) -> &'2 Foo<'_> {id::<&'2 Foo<'_>>}` must implement `FnOnce<(&'1 Foo<'b>,)>`, for any lifetime `'1`...
44    = note: ...but it actually implements `FnOnce<(&'2 Foo<'_>,)>`, for some specific lifetime `'2`
45
46 error: aborting due to 5 previous errors
47
48 For more information about this error, try `rustc --explain E0308`.