Guest User

Untitled

a guest
Jun 20th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. [1,2,3][10000..10000]
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. error[E0277]: the trait bound `[{integer}]: std::marker::Sized` is not satisfied
  11. --> src/main.rs:4:5
  12. |
  13. 4 | / println!("{:?}", {
  14. 5 | | [1,2,3][10000..10000]
  15. 6 | | });
  16. | |_______^ `[{integer}]` does not have a constant size known at compile-time
  17. |
  18. = help: the trait `std::marker::Sized` is not implemented for `[{integer}]`
  19. = note: required by `std::fmt::ArgumentV1::new`
  20. = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
  21.  
  22. error: aborting due to previous error
  23.  
  24. For more information about this error, try `rustc --explain E0277`.
  25. error: Could not compile `playground`.
  26.  
  27. To learn more, run the command again with --verbose.
  28.  
  29. */
  30.  
  31. /* ~~~~=== stdout ===~~~~
  32.  
  33. */
Add Comment
Please, Sign In to add comment