summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/in-trait/doesnt-satisfy.stderr
blob: aa5492d285ed6f9ecbbbca71e40efcae6a4e3649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0277]: `()` doesn't implement `std::fmt::Display`
  --> $DIR/doesnt-satisfy.rs:9:17
   |
LL |     fn bar() -> () {}
   |                 ^^ `()` cannot be formatted with the default formatter
   |
   = help: the trait `std::fmt::Display` is not implemented for `()`
   = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
note: required by a bound in `Foo::bar::{opaque#0}`
  --> $DIR/doesnt-satisfy.rs:5:22
   |
LL |     fn bar() -> impl std::fmt::Display;
   |                      ^^^^^^^^^^^^^^^^^ required by this bound in `Foo::bar::{opaque#0}`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.