-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
pretty printer doesn't know how to print the omitted type _
marker
example:
fn main() {
fn f1(x: i32, y: i32) -> i32 { y }
let f: fn(_, i32) -> i32 = f1;
// ~
// |
// +--- this is pretty-printed badly.
f(13);
}
pretty prints this way:
% ./x86_64-apple-darwin/stage1/bin/rustc --pretty -Z unstable-options pp-1.rs
fn main() {
fn f1(x: i32, y: i32) -> i32 { y }
let f: fn(, i32) -> i32 = f1;
// ~
// |
// +--- this is pretty-printed badly.
f(13);
}
%
Metadata
Metadata
Assignees
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.