Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- format!("{:E}", 10)
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0277]: the trait bound `{integer}: std::fmt::UpperExp` is not satisfied
- --> src/main.rs:5:25
- |
- 5 | format!("{:E}", 10)
- | ^^ the trait `std::fmt::UpperExp` is not implemented for `{integer}`
- |
- = help: the following implementations were found:
- <&'a T as std::fmt::UpperExp>
- <&'a mut T as std::fmt::UpperExp>
- <f32 as std::fmt::UpperExp>
- <f64 as std::fmt::UpperExp>
- = note: required by `std::fmt::UpperExp::fmt`
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0277`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment