Remove some annotations that just specify the default · rust-lang/rust@1efb747 (original) (raw)
1
1
`` error[E0792]: expected generic lifetime parameter, found 'a
``
2
``
`-
--> $DIR/higher-ranked-regions-basic.rs:17:55
`
``
2
`+
--> $DIR/higher-ranked-regions-basic.rs:15:55
`
3
3
` |
`
4
4
`LL | type Opq<'a> = impl Sized + 'a;
`
5
5
` | -- this generic parameter must be used with a generic lifetime parameter
`
6
6
`LL | fn test() -> impl for<'a> Trait<'a, Ty = Opq<'a>> {}
`
7
7
` | ^^
`
8
8
``
9
9
`` error[E0700]: hidden type for impl Sized
captures lifetime that does not appear in bounds
``
10
``
`-
--> $DIR/higher-ranked-regions-basic.rs:23:58
`
``
10
`+
--> $DIR/higher-ranked-regions-basic.rs:21:58
`
11
11
` |
`
12
12
`LL | fn test() -> impl for<'a> Trait<'a, Ty = impl Sized> {}
`
13
13
` | -- ---------- ^^
`
`@@ -16,7 +16,7 @@ LL | fn test() -> impl for<'a> Trait<'a, Ty = impl Sized> {}
`
16
16
`` | hidden type &'a ()
captures the lifetime 'a
as defined here
``
17
17
``
18
18
`` error[E0700]: hidden type for capture_tait::Opq0
captures lifetime that does not appear in bounds
``
19
``
`-
--> $DIR/higher-ranked-regions-basic.rs:32:23
`
``
19
`+
--> $DIR/higher-ranked-regions-basic.rs:30:23
`
20
20
` |
`
21
21
`LL | type Opq0 = impl Sized;
`
22
22
` | ---------- opaque type defined here
`
`@@ -27,7 +27,7 @@ LL | fn test() -> Opq2 {}
`
27
27
` | ^^
`
28
28
``
29
29
`` error[E0792]: expected generic lifetime parameter, found 'a
``
30
``
`-
--> $DIR/higher-ranked-regions-basic.rs:41:23
`
``
30
`+
--> $DIR/higher-ranked-regions-basic.rs:39:23
`
31
31
` |
`
32
32
`LL | type Opq1<'a> = impl for<'b> Trait<'b, Ty = Opq0<'b>>; // <- Note 'b
`
33
33
` | -- this generic parameter must be used with a generic lifetime parameter
`
`@@ -36,7 +36,7 @@ LL | fn test() -> Opq2 {}
`
36
36
` | ^^
`
37
37
``
38
38
`` error[E0700]: hidden type for capture_tait_complex_fail::Opq0<'a>
captures lifetime that does not appear in bounds
``
39
``
`-
--> $DIR/higher-ranked-regions-basic.rs:51:23
`
``
39
`+
--> $DIR/higher-ranked-regions-basic.rs:49:23
`
40
40
` |
`
41
41
`LL | type Opq0<'a> = impl Sized;
`
42
42
` | ---------- opaque type defined here
`
`@@ -47,47 +47,47 @@ LL | fn test() -> Opq2 {}
`
47
47
` | ^^
`
48
48
``
49
49
`error[E0792]: non-defining opaque type use in defining scope
`
50
``
`-
--> $DIR/higher-ranked-regions-basic.rs:59:41
`
``
50
`+
--> $DIR/higher-ranked-regions-basic.rs:57:41
`
51
51
` |
`
52
52
`LL | fn test() -> impl for<'a> Trait<'a, Ty = Opq0<'a, 'static>> {}
`
53
53
`` | ^^^^^^^^^^^^^^^^^^^^^^ argument 'static
is not a generic parameter
``
54
54
` |
`
55
55
`note: for this opaque type
`
56
``
`-
--> $DIR/higher-ranked-regions-basic.rs:58:25
`
``
56
`+
--> $DIR/higher-ranked-regions-basic.rs:56:25
`
57
57
` |
`
58
58
`LL | type Opq0<'a, 'b> = impl Sized;
`
59
59
` | ^^^^^^^^^^
`
60
60
``
61
61
`` error[E0792]: expected generic lifetime parameter, found 'a
``
62
``
`-
--> $DIR/higher-ranked-regions-basic.rs:59:65
`
``
62
`+
--> $DIR/higher-ranked-regions-basic.rs:57:65
`
63
63
` |
`
64
64
`LL | type Opq0<'a, 'b> = impl Sized;
`
65
65
` | -- this generic parameter must be used with a generic lifetime parameter
`
66
66
`LL | fn test() -> impl for<'a> Trait<'a, Ty = Opq0<'a, 'static>> {}
`
67
67
` | ^^
`
68
68
``
69
69
`error: non-defining opaque type use in defining scope
`
70
``
`-
--> $DIR/higher-ranked-regions-basic.rs:68:41
`
``
70
`+
--> $DIR/higher-ranked-regions-basic.rs:66:41
`
71
71
` |
`
72
72
`LL | fn test() -> impl for<'a> Trait<'a, Ty = Opq0<'a, 'a>> {}
`
73
73
`` | ^^^^^^^^^^^^^^^^^ generic argument 'a
used twice
``
74
74
` |
`
75
75
`note: for this opaque type
`
76
``
`-
--> $DIR/higher-ranked-regions-basic.rs:67:25
`
``
76
`+
--> $DIR/higher-ranked-regions-basic.rs:65:25
`
77
77
` |
`
78
78
`LL | type Opq0<'a, 'b> = impl Sized;
`
79
79
` | ^^^^^^^^^^
`
80
80
``
81
81
`` error[E0792]: expected generic lifetime parameter, found 'a
``
82
``
`-
--> $DIR/higher-ranked-regions-basic.rs:68:60
`
``
82
`+
--> $DIR/higher-ranked-regions-basic.rs:66:60
`
83
83
` |
`
84
84
`LL | type Opq0<'a, 'b> = impl Sized;
`
85
85
` | -- this generic parameter must be used with a generic lifetime parameter
`
86
86
`LL | fn test() -> impl for<'a> Trait<'a, Ty = Opq0<'a, 'a>> {}
`
87
87
` | ^^
`
88
88
``
89
89
`` error[E0792]: expected generic lifetime parameter, found 'a
``
90
``
`-
--> $DIR/higher-ranked-regions-basic.rs:78:23
`
``
90
`+
--> $DIR/higher-ranked-regions-basic.rs:76:23
`
91
91
` |
`
92
92
`LL | type Opq1<'a> = impl for<'b> Trait<'b, Ty = Opq0<'a, 'b>>;
`
93
93
` | -- this generic parameter must be used with a generic lifetime parameter
`