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
Could you add in which case this code will improve the current rustc output please? (Put a code with the current output and then the improved one.) It'll help us to understand what you want to do.
error[E0312]: lifetime of reference outlives lifetime of borrowed content...
--> src/main.rs:2:12
|
2 | x.push(y);
| ^
|
note: ...the reference is valid for the lifetime 'a as defined on the function body at 1:1...
--> src/main.rs:1:1
|
1 | / fn foo<'a, 'b>(x: &mut Vec<&'a u8>, y: &'b u8) {
2 | | x.push(y);
3 | | }
| |_^
note: ...but the borrowed content is only valid for the lifetime 'b as defined on the function body at 1:1
--> src/main.rs:1:1
|
1 | / fn foo<'a, 'b>(x: &mut Vec<&'a u8>, y: &'b u8) {
2 | | x.push(y);
3 | | }
| |_^
New output
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions.rs:12:12
|
11 | fn foo<'a, 'b>(x: &mut Vec<&'a u8>, y: &'b u8) {
| ------ ------ these two types are declared with different lifetimes...
12 | x.push(y);
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error
Activity
gaurikholkar-zz commentedon Aug 15, 2017
Here's the code I pushed into a local branch.
I need help with examples for both the cases.
gaurikholkar-zz commentedon Aug 16, 2017
Status:The check for
if debruijn_index.depth == 1 && self.infcx.tcx.hir.local_def_id(id) == def_idfails forLateBoundLogs are
gaurikholkar-zz commentedon Aug 16, 2017
@nikomatsakis
for EarlyBound
I've confirmed with @arielb1 that this is the correct example for the case but it doesn't seem to trigger the
EarlyBoundcase in the code.GuillaumeGomez commentedon Aug 16, 2017
Could you add in which case this code will improve the current rustc output please? (Put a code with the current output and then the improved one.) It'll help us to understand what you want to do.
gaurikholkar-zz commentedon Aug 17, 2017
@GuillaumeGomez here is the example
Current output
New output
[-]Extend E0623 for named conflicts[/-][+]Extend E0623 for named conflicts WIP[/+]Auto merge of #44079 - gaurikholkar:named_conf, r=nikomatsakis
gaurikholkar-zz commentedon Sep 14, 2017
In the process of doing it for structs now
#44549
gaurikholkar-zz commentedon Sep 29, 2017
cc @nikomatsakis you can add the other cases
estebank commentedon Nov 9, 2017
@gaurikholkar, are there outstanding tasks for this issue?
gaurikholkar-zz commentedon Nov 10, 2017
Nope. @estebank updated the title.
[-]Extend E0623 for named conflicts WIP[/-][+]Extend E0623 for named conflicts[/+]BGR360 commentedon Dec 29, 2021
Sooo, can this be closed?
GuillaumeGomez commentedon Dec 29, 2021
I guess so.