fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
695 B17 linesraw
1error[E0277]: `()` doesn't implement `std::fmt::Display`
2  --> $DIR/doesnt-satisfy.rs:9:17
3   |
4LL |     fn bar() -> () {}
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
9note: required by a bound in `Foo::{opaque#0}`
10  --> $DIR/doesnt-satisfy.rs:5:22
11   |
12LL |     fn bar() -> impl std::fmt::Display;
13   |                      ^^^^^^^^^^^^^^^^^ required by this bound in `Foo::{opaque#0}`
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.