Skip to content

Instantly share code, notes, and snippets.

View mattjperez's full-sized avatar
🦀

Matthew J Perez mattjperez

🦀
View GitHub Profile
@mattjperez
mattjperez / 105552.txt
Created January 21, 2023 20:33
Failed test output from #105552 if add note when !same_type_modulo_infer()
---- [ui] tests/ui/argument-suggestions/two-mismatch-notes.rs stdout ----
diff of stderr:
11 | ^
12 = note: expected fn pointer `fn(i32)`
13 found fn item `fn(u32) {f}`
+ = note: fn items are distinct from fn pointers, consider casting to a fn pointer or using type inference
14 note: expected `i32`, found `isize`
15 --> $DIR/two-mismatch-notes.rs:10:12
16 |