We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fn foo(f: for<'a,'b> fn(&'a ()) -> &'a &'b ()) { bar(f); } fn bar(f: for<'a,'b> fn(&'b ()) -> &'a &'b ()) { } fn main() {}
<anon>:2:9: 2:10 error: mismatched types: expected `fn(&'b ()) -> &'a &'b ()`, found `fn(&'a ()) -> &'a &'b ()` (expected concrete lifetime, found bound lifetime parameter 'a) [E0308] <anon>:2 bar(f); ^ <anon>:2:9: 2:10 help: see the detailed explanation for E0308 note: expected concrete lifetime is lifetime ReInfer(ReSkolemized(0, BrNamed(DefId { krate: 0, node: 31 }, "\'b"(64)))) error: aborting due to previous error playpen: application terminated with error code 101
No leak of rustc internals into error messages.
The text was updated successfully, but these errors were encountered:
Lines 172-174 of src/librustc/util/ppaux.rs. /cc @nikomatsakis
src/librustc/util/ppaux.rs
Sorry, something went wrong.
cc me
Gonna close this as a dupe of #13998 if you don't mind.
No branches or pull requests
STR
Actual Results
Expected Results
No leak of rustc internals into error messages.
The text was updated successfully, but these errors were encountered: