| error[E0277]: `Option<Option<Option<...>>>` doesn't implement `std::fmt::Display` |
| --> $DIR/on_unimplemented_long_types.rs:4:17 |
| | |
| LL | pub fn foo() -> impl std::fmt::Display { |
| | ^^^^^^^^^^^^^^^^^^^^^^ `Option<Option<Option<...>>>` cannot be formatted with the default formatter |
| LL | |
| LL | / Some(Some(Some(Some(Some(Some(Some(Some(Some(S... |
| LL | | Some(Some(Some(Some(Some(Some(Some(Some(So... |
| LL | | Some(Some(Some(Some(Some(Some(Some(Som... |
| LL | | Some(Some(Some(Some(Some(Some(Some... |
| ... | |
| LL | | ))))))))))), |
| LL | | ))))))))))) |
| | |_______________- return type was inferred to be `Option<Option<Option<...>>>` here |
| | |
| = note: the full name for the type has been written to '$TEST_BUILD_DIR/traits/on_unimplemented_long_types/on_unimplemented_long_types.long-type-hash.txt' |
| = note: consider using `--verbose` to print the full type name to the console |
| = help: the trait `std::fmt::Display` is not implemented for `Option<Option<Option<...>>>` |
| = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead |
| = note: the full name for the type has been written to '$TEST_BUILD_DIR/traits/on_unimplemented_long_types/on_unimplemented_long_types.long-type-hash.txt' |
| = note: consider using `--verbose` to print the full type name to the console |
| |
| error: aborting due to 1 previous error |
| |
| For more information about this error, try `rustc --explain E0277`. |