]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/point-at-type-param-in-path-expr.stderr
Rollup merge of #106860 - anden3:doc-double-spaces, r=Dylan-DPC
[rust.git] / tests / ui / typeck / point-at-type-param-in-path-expr.stderr
1 error[E0277]: `()` doesn't implement `std::fmt::Display`
2   --> $DIR/point-at-type-param-in-path-expr.rs:4:19
3    |
4 LL |     let x = foo::<()>;
5    |                   ^^ `()` cannot be formatted with the default formatter
6    |
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
11    |
12 LL | fn foo<T: std::fmt::Display>() {}
13    |           ^^^^^^^^^^^^^^^^^ required by this bound in `foo`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.