-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
region error messages involving impls are confusing #53124
Conversation
@bors r+ |
1 similar comment
@bors r+ |
📌 Commit 12037ff has been approved by |
@bors delegate=davidtwco |
✌️ @davidtwco can now approve this pull request |
region error messages involving impls are confusing Part of rust-lang#52742. r? @nikomatsakis
region error messages involving impls are confusing Part of #52742. r? @nikomatsakis
💔 Test failed - status-appveyor |
@bors r- failures:
---- [ui] ui\nll\issue-52742.rs stdout ----
diff of stderr:
- error: unsatisfied lifetime constraints
- --> $DIR/issue-52742.rs:25:9
+ error[E0106]: missing lifetime specifiers
+ --> $DIR/issue-52742.rs:23:10
3 |
- LL | fn take_bar(&mut self, b: Bar<'_>) {
- | --------- -- let's call this `'1`
- | |
- | has type `&mut Foo<'_, '2>`
- LL | self.y = b.z
- | ^^^^^^^^^^^^ requires that `'1` must outlive `'2`
+ LL | impl Foo<'_, '_> {
+ | ^^ expected 2 lifetime parameters
10
11 error: aborting due to previous error
12
+ For more information about this error, try `rustc --explain E0106`.
13 |
// except according to those terms. | ||
|
||
#![feature(nll)] | ||
#![feature(in_band_lifetimes)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the problem here is that we now need another feature gate here
#![feature(impl_header_lifetime_elision)]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@bors r+ |
📌 Commit 31657c9 has been approved by |
region error messages involving impls are confusing Part of #52742. r? @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
Part of #52742.
r? @nikomatsakis