8df39667dc
This option guards the logic of writing long type names in files and instead using short forms in error messages in rustc_middle/ty/error behind a flag. The main motivation for this change is to disable this behaviour when running ui tests. This logic can be triggered by running tests in a directory that has a long enough path, e.g. /my/very-long-path/where/rust-codebase/exists/ This means ui tests can fail depending on how long the path to their file is. Some ui tests actually rely on this behaviour for their assertions, so for those we enable the flag manually.
23 lines
868 B
Plaintext
23 lines
868 B
Plaintext
error[E0271]: type mismatch resolving `<Result<Result<(), Result<Result<(), Result<Result<(), Option<{integer}>>, ...>>, ...>>, ...> as Future>::Error == Foo`
|
|
--> $DIR/E0271.rs:18:5
|
|
|
|
|
LL | / Box::new(
|
|
LL | | Ok::<_, ()>(
|
|
LL | | Err::<(), _>(
|
|
LL | | Ok::<_, ()>(
|
|
... |
|
|
LL | | )
|
|
LL | | )
|
|
| |_____^ type mismatch resolving `<Result<Result<(), Result<Result<(), ...>, ...>>, ...> as Future>::Error == Foo`
|
|
|
|
|
note: expected this to be `Foo`
|
|
--> $DIR/E0271.rs:8:18
|
|
|
|
|
LL | type Error = E;
|
|
| ^
|
|
= note: required for the cast from `Box<Result<Result<(), Result<Result<(), Result<Result<(), Option<{integer}>>, ()>>, ()>>, ()>>` to `Box<(dyn Future<Error = Foo> + 'static)>`
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0271`.
|