1 error[E0277]: `()` doesn't implement `std::fmt::Display`
2 --> $DIR/point-at-type-param-in-path-expr.rs:4:19
4 LL | let x = foo::<()>;
5 | ^^ `()` cannot be formatted with the default formatter
7 = help: the trait `std::fmt::Display` is not implemented for `()`
8 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
9 note: required by a bound in `foo`
10 --> $DIR/point-at-type-param-in-path-expr.rs:1:11
12 LL | fn foo<T: std::fmt::Display>() {}
13 | ^^^^^^^^^^^^^^^^^ required by this bound in `foo`
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0277`.