Skip to content

Commit 0395fc7

Browse files
authored
Rollup merge of rust-lang#66186 - GuillaumeGomez:long-err-explanation-E0623, r=Dylan-DPC
Add long error explanation for E0623 Part of rust-lang#61137. r? @Dylan-DPC
2 parents 1d89492 + fd868d4 commit 0395fc7

File tree

71 files changed

+123
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+123
-9
lines changed

src/librustc/error_codes.rs

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1896,6 +1896,51 @@ fn foo<'a>(x: &'a i32, y: &i32) -> &'a i32 {
18961896
```
18971897
"##,
18981898

1899+
E0623: r##"
1900+
A lifetime didn't match what was expected.
1901+
1902+
Erroneous code example:
1903+
1904+
```compile_fail,E0623
1905+
struct Foo<'a> {
1906+
x: &'a isize,
1907+
}
1908+
1909+
fn bar<'short, 'long>(c: Foo<'short>, l: &'long isize) {
1910+
let _: Foo<'long> = c; // error!
1911+
}
1912+
```
1913+
1914+
In this example, we tried to set a value with an incompatible lifetime to
1915+
another one (`'long` is unrelated to `'short`). We can solve this issue in
1916+
two different ways:
1917+
1918+
Either we make `'short` live at least as long as `'long`:
1919+
1920+
```
1921+
struct Foo<'a> {
1922+
x: &'a isize,
1923+
}
1924+
1925+
// we set 'short to live at least as long as 'long
1926+
fn bar<'short: 'long, 'long>(c: Foo<'short>, l: &'long isize) {
1927+
let _: Foo<'long> = c; // ok!
1928+
}
1929+
```
1930+
1931+
Or we use only one lifetime:
1932+
1933+
```
1934+
struct Foo<'a> {
1935+
x: &'a isize,
1936+
}
1937+
1938+
fn bar<'short>(c: Foo<'short>, l: &'short isize) {
1939+
let _: Foo<'short> = c; // ok!
1940+
}
1941+
```
1942+
"##,
1943+
18991944
E0635: r##"
19001945
The `#![feature]` attribute specified an unknown feature.
19011946
@@ -2329,7 +2374,6 @@ the future, [RFC 2091] prohibits their implementation without a follow-up RFC.
23292374
E0488, // lifetime of variable does not enclose its declaration
23302375
E0489, // type/lifetime parameter not in scope here
23312376
E0490, // a value of type `..` is borrowed for too long
2332-
E0623, // lifetime mismatch where both parameters are anonymous regions
23332377
E0628, // generators cannot have explicit parameters
23342378
E0631, // type mismatch in closure arguments
23352379
E0637, // "'_" is not a valid lifetime bound

src/test/ui/associated-type-bounds/implied-region-constraints.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ LL | let _failure_proves_not_implied_outlives_region_b: &'b T = &x;
1818

1919
error: aborting due to 2 previous errors
2020

21+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | let z: I::A = if cond { x } else { y };
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/associated-types/associated-types-subtyping-1.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ LL | let _c: <T as Trait<'a>>::Type = b;
1818

1919
error: aborting due to 2 previous errors
2020

21+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/associated-types/cache/project-fn-ret-contravariant.krisskross.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ LL | (a, b)
2222

2323
error: aborting due to 2 previous errors
2424

25+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/associated-types/cache/project-fn-ret-invariant.krisskross.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ LL | let b = bar(foo, x);
2121

2222
error: aborting due to 2 previous errors
2323

24+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/associated-types/cache/project-fn-ret-invariant.oneuse.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | let b = bar(f, y);
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/async-await/issues/issue-63388-1.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | foo
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-one.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ LL | async fn async_ret_impl_trait1<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<
99

1010
error: aborting due to previous error
1111

12+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/borrowck/borrowck-reborrow-from-shorter-lived-andmut.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | S { pointer: &mut *p.pointer }
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/continue-after-missing-main.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ LL | let _: AdaptedMatrixProvider<'original_data, MP> = tableau.provider().c
2121

2222
error: aborting due to 2 previous errors
2323

24-
For more information about this error, try `rustc --explain E0601`.
24+
Some errors have detailed explanations: E0601, E0623.
25+
For more information about an error, try `rustc --explain E0601`.

src/test/ui/impl-trait/must_outlive_least_region_or_bound.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,5 @@ LL | fn ty_param_wont_outlive_static<T:Debug>(x: T) -> impl Debug + 'static {
7777

7878
error: aborting due to 5 previous errors
7979

80-
For more information about this error, try `rustc --explain E0310`.
80+
Some errors have detailed explanations: E0310, E0623.
81+
For more information about an error, try `rustc --explain E0310`.

src/test/ui/in-band-lifetimes/mismatched.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ LL | fn foo2(x: &'a u32, y: &'b u32) -> &'a u32 { y }
1616

1717
error: aborting due to 2 previous errors
1818

19-
For more information about this error, try `rustc --explain E0621`.
19+
Some errors have detailed explanations: E0621, E0623.
20+
For more information about an error, try `rustc --explain E0621`.

src/test/ui/in-band-lifetimes/mismatched_trait_impl.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ LL | x
2222

2323
error: aborting due to 2 previous errors
2424

25+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/issues/issue-17728.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ LL | | }
2929

3030
error: aborting due to 2 previous errors
3131

32-
For more information about this error, try `rustc --explain E0308`.
32+
Some errors have detailed explanations: E0308, E0623.
33+
For more information about an error, try `rustc --explain E0308`.

src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | if x > y { x } else { y }
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | x
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-self-is-anon.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | if true { x } else { self }
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex2b-push-no-existing-names.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.push(y);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex2c-push-inference-variable.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ LL | x.push(z);
99

1010
error: aborting due to previous error
1111

12+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex2d-push-inference-variable-2.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | let a: &mut Vec<Ref<i32>> = x;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex2e-push-inference-variable-3.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | let a: &mut Vec<Ref<i32>> = x;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | *v = x;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ LL | z.push((x,y));
1616

1717
error: aborting due to 2 previous errors
1818

19+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.b = y.b;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.a = x.b;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-earlybound-regions.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ LL | x.push(y);
99

1010
error: aborting due to previous error
1111

12+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-latebound-regions.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.push(y);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.push(y);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.push(y);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | y = x.b;
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | y.b = x;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | y.b = x;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.b = y;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-return-type-is-anon.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | x
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-self-is-anon.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | if true { x } else { self }
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | y.push(z);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.push(y);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | y.push(z);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.push(y);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/object-lifetime/object-lifetime-default-mybox.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ LL | fn load2<'a>(ss: &MyBox<dyn SomeTrait + 'a>) -> MyBox<dyn SomeTrait + 'a> {
2727

2828
error: aborting due to 2 previous errors
2929

30-
For more information about this error, try `rustc --explain E0308`.
30+
Some errors have detailed explanations: E0308, E0623.
31+
For more information about an error, try `rustc --explain E0308`.

src/test/ui/regions/region-lifetime-bounds-on-fns-where-clause.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ LL | let _: fn(&mut &isize, &mut &isize) = a;
2727

2828
error: aborting due to 3 previous errors
2929

30-
For more information about this error, try `rustc --explain E0308`.
30+
Some errors have detailed explanations: E0308, E0623.
31+
For more information about an error, try `rustc --explain E0308`.

src/test/ui/regions/region-multiple-lifetime-bounds-on-fns-where-clause.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ LL | let _: fn(&mut &isize, &mut &isize, &mut &isize) = a;
3838

3939
error: aborting due to 4 previous errors
4040

41-
For more information about this error, try `rustc --explain E0308`.
41+
Some errors have detailed explanations: E0308, E0623.
42+
For more information about an error, try `rustc --explain E0308`.

src/test/ui/regions/regions-bounded-method-type-parameters-cross-crate.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ LL | a.bigger_region(b)
99

1010
error: aborting due to previous error
1111

12+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-bounded-method-type-parameters-trait-bound.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ LL | f.method(b);
99

1010
error: aborting due to previous error
1111

12+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-creating-enums3.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | Ast::Add(x, y)
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-free-region-ordering-callee.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ LL | let z: &'b usize = &*x;
2222

2323
error: aborting due to 2 previous errors
2424

25+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-free-region-ordering-caller.migrate.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ LL | let z: Option<&'a &'b usize> = None;
2929

3030
error: aborting due to 3 previous errors
3131

32+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-infer-contravariance-due-to-decl.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ LL | let _: Contravariant<'long> = c;
1212

1313
error: aborting due to previous error
1414

15+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-infer-covariance-due-to-decl.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | let _: Covariant<'short> = c;
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-lifetime-bounds-on-fns.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ LL | let _: fn(&mut &isize, &mut &isize) = a;
2727

2828
error: aborting due to 3 previous errors
2929

30-
For more information about this error, try `rustc --explain E0308`.
30+
Some errors have detailed explanations: E0308, E0623.
31+
For more information about an error, try `rustc --explain E0308`.

src/test/ui/regions/regions-reborrow-from-shorter-mut-ref-mut-ref.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | &mut ***p
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-reborrow-from-shorter-mut-ref.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | &mut **p
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-variance-contravariant-use-covariant-in-second-position.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ LL | let _: S<'long, 'long> = c;
99

1010
error: aborting due to previous error
1111

12+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-variance-contravariant-use-covariant.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ LL | let _: Contravariant<'long> = c;
1212

1313
error: aborting due to previous error
1414

15+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-variance-covariant-use-contravariant.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | let _: Covariant<'short> = c;
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-variance-invariant-use-contravariant.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | let _: Invariant<'short> = c;
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ LL | async fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg }
2424

2525
error: aborting due to 3 previous errors
2626

27+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ LL | fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg }
2424

2525
error: aborting due to 3 previous errors
2626

27+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/lt-ref-self-async.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ LL | f
6060

6161
error: aborting due to 6 previous errors
6262

63+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/lt-ref-self.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ LL | f
6060

6161
error: aborting due to 6 previous errors
6262

63+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/ref-mut-self-async.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ LL | f
6060

6161
error: aborting due to 6 previous errors
6262

63+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/ref-mut-self.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ LL | f
6060

6161
error: aborting due to 6 previous errors
6262

63+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/ref-mut-struct-async.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ LL | f
5050

5151
error: aborting due to 5 previous errors
5252

53+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/ref-mut-struct.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ LL | f
5050

5151
error: aborting due to 5 previous errors
5252

53+
For more information about this error, try `rustc --explain E0623`.

0 commit comments

Comments
 (0)