You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered this problem several times while compiling versions of rustc with errors, but this is the first self-contained example I have found.
<anon>:9:9: 9:12 error: attempted access of field `c` on type `&Foo`, but no field with that name was found
<anon>:9 b.c;
^~~
<anon>:10:14: 10:19 error: cannot infer an appropriate lifetime for lifetime parameter `'tcx` due to conflicting requirements [E0495]
<anon>:10 self.tcx();
^~~~~
<anon>:7:5: 11:6 help: consider using an explicit lifetime parameter as shown: fn lol(&mut self, b: &Foo)
<anon>: 7 fn lol(&mut self, b: &Foo)
<anon>: 8 {
<anon>: 9 b.c;
<anon>:10 self.tcx();
<anon>:11 }
error: aborting due to 2 previous errors
Note the fat cascading region error. This reproduces on 1.5/1.6 and current nightly.
The text was updated successfully, but these errors were encountered:
Do not report errors from regionck if other errors were already reported
Do not report errors from regionck if other errors were already reported during the lifetime of this inferencer. Fixesrust-lang#30580.
r? @arielb1
Do not report errors from regionck if other errors were already reported
Do not report errors from regionck if other errors were already reported during the lifetime of this inferencer. Fixesrust-lang#30580.
r? @arielb1
I have encountered this problem several times while compiling versions of rustc with errors, but this is the first self-contained example I have found.
STR
Expected Result
A single error as the field
c
does not existActual Result
Note the fat cascading region error. This reproduces on 1.5/1.6 and current nightly.
The text was updated successfully, but these errors were encountered: