Make it so more type-system types can be printed in a shortened version (like `Predicate`s). Centralize printing the information about the "full type name path". Make the "long type path" for the file where long types are written part of `Diag`, so that it becomes easier to keep track of it, and ensure it will always will be printed out last in the diagnostic by making its addition to the output implicit. Tweak the shortening of types in "expected/found" labels. Remove dead file `note.rs`.
13 lines
462 B
Plaintext
13 lines
462 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/issue-107860.rs:3:36
|
|
|
|
|
LL | async fn str<T>(T: &str) -> &str { &str }
|
|
| ^^^^ expected `&str`, found `&fn(&str) -> ... {str::<_>}`
|
|
|
|
|
= note: expected reference `&str`
|
|
found reference `&for<'a> fn(&'a str) -> impl Future<Output = &'a str> {str::<_>}`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|