mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-24 21:57:41 +00:00
16 lines
557 B
Plaintext
16 lines
557 B
Plaintext
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`.
|