summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/associated-types-project-from-hrtb-in-struct.stderr
blob: 62a619723511e6a9948b08e15911222e3587a8ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
error[E0212]: cannot use the associated type of a trait with uninferred generic parameters
  --> $DIR/associated-types-project-from-hrtb-in-struct.rs:11:12
   |
LL |     field: I::A
   |            ^^^^
   |
help: use a fully qualified path with explicit lifetimes
   |
LL ~ struct SomeStruct<'a, I: for<'x> Foo<&'x isize>> {
LL ~     field: <I as Foo<&'a isize>>::A
   |

error[E0212]: cannot use the associated type of a trait with uninferred generic parameters
  --> $DIR/associated-types-project-from-hrtb-in-struct.rs:16:18
   |
LL |     TupleVariant(I::A),
   |                  ^^^^
   |
help: use a fully qualified path with explicit lifetimes
   |
LL ~ enum SomeEnum<'c, 'b, I: for<'a> Foo<&'a isize>> {
LL ~     TupleVariant(<I as Foo<&'c isize>>::A),
   |

error[E0212]: cannot use the associated type of a trait with uninferred generic parameters
  --> $DIR/associated-types-project-from-hrtb-in-struct.rs:18:28
   |
LL |     StructVariant { field: I::A },
   |                            ^^^^
   |
help: use a fully qualified path with explicit lifetimes
   |
LL ~ enum SomeEnum<'c, 'b, I: for<'a> Foo<&'a isize>> {
LL |     TupleVariant(I::A),
LL |
LL ~     StructVariant { field: <I as Foo<&'c isize>>::A },
   |

error[E0212]: cannot use the associated type of a trait with uninferred generic parameters
  --> $DIR/associated-types-project-from-hrtb-in-struct.rs:35:12
   |
LL |     field: I::A,
   |            ^^^^
   |
help: use a fully qualified path with explicit lifetimes
   |
LL ~ struct Why<'bb, 'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'n, 'o, 'p, 'q, 'r, 's, 't, 'u, 'v, 'w, 'x,
LL |     'y, 'z, 'aa, I: for<'l, 'm> Foo<&'l &'m isize>> {
LL ~     field: <I as Foo<&'bb &'bb isize>>::A,
   |

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0212`.