-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
cannot relate region: LUB(ReErased, ReFree(...)) #80779
Comments
@ptal this works for me on latest nightly. If you update your version of the compiler, does it work for you? https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=8ac488d8147229b6a0435e5a73c15333 |
Oh oops, I was missing |
Slightly smaller: pub struct T<'a>(&'a str);
pub fn f<'a>(val: T<'a>) -> _ {
g(val)
}
pub fn g(_: T<'static>) -> _ {} If you change |
This issue has been fixed by #82494, marking as |
…tests, r=Dylan-DPC Add some regression tests related to rust-lang#82494 Closes rust-lang#75883, closes rust-lang#80779 r? `@estebank`
…tests, r=Dylan-DPC Add some regression tests related to rust-lang#82494 Closes rust-lang#75883, closes rust-lang#80779 r? ``@estebank``
…tests, r=Dylan-DPC Add some regression tests related to rust-lang#82494 Closes rust-lang#75883, closes rust-lang#80779 r? ```@estebank```
Code
Meta
rustc --version --verbose
:Note: Same error on stable and beta.
Error output
Backtrace
The text was updated successfully, but these errors were encountered: