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
These examples do not compile for other reasons, but in the 18 months since it was filed, we did some updates on shadowing of lifetimes. You now get:
src/lib.rs:20:19: 20:21 error: lifetime name `'a` shadows a lifetime name that is already in scope [E0496]
src/lib.rs:20 fn node_label<'a>(&self, i: &Nd) -> dot::LabelText<'a> {
^~
src/lib.rs:20:19: 20:21 help: run `rustc --explain E0496` to see a detailed explanation
src/lib.rs:13:6: 13:8 note: shadowed lifetime `'a` declared here
src/lib.rs:13 impl<'a> dot::Labeller<'a, Nd, Ed> for Graph<'a> {
^~
Much better. As such I'm going to give it a close!
I'm getting this on Fedora 20 with rustc 0.12.0-nightly (b5ba2f5 2014-10-06 20:27:14 +0000).
The following program:
When compiled with
rustc --crate-type=lib
non-deterministically gives one of 2 error messages.A useful one:
and a buggy one, thats suggested fix is what's already written in the program:
On my Mac, I always get the worse error message.
I think this is the same issue described here: #13057
The text was updated successfully, but these errors were encountered: