about summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-trait/doesnt-satisfy.stderr
blob: df89ed9f3b56d3b5461c3cf185c184d1cac367ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0277]: `()` doesn't implement `std::fmt::Display`
  --> $DIR/doesnt-satisfy.rs:6:17
   |
LL |     fn bar() -> () {}
   |                 ^^ the trait `std::fmt::Display` is not implemented for `()`
   |
note: required by a bound in `Foo::bar::{anon_assoc#0}`
  --> $DIR/doesnt-satisfy.rs:2:22
   |
LL |     fn bar() -> impl std::fmt::Display;
   |                      ^^^^^^^^^^^^^^^^^ required by this bound in `Foo::bar::{anon_assoc#0}`

error: aborting due to 1 previous error

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