mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00

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`.
15 lines
600 B
Plaintext
15 lines
600 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/box-future-wrong-output.rs:20:39
|
|
|
|
|
LL | let _: BoxFuture<'static, bool> = async {}.boxed();
|
|
| ------------------------ ^^^^^^^^^^^^^^^^ expected `Pin<Box<...>>`, found `Pin<Box<dyn Future<Output = ()> + Send>>`
|
|
| |
|
|
| expected due to this
|
|
|
|
|
= note: expected struct `Pin<Box<(dyn Future<Output = bool> + Send + 'static)>>`
|
|
found struct `Pin<Box<dyn Future<Output = ()> + Send>>`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|