Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- [1,2,3][10000..10000]
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0277]: the trait bound `[{integer}]: std::marker::Sized` is not satisfied
- --> src/main.rs:4:5
- |
- 4 | / println!("{:?}", {
- 5 | | [1,2,3][10000..10000]
- 6 | | });
- | |_______^ `[{integer}]` does not have a constant size known at compile-time
- |
- = help: the trait `std::marker::Sized` is not implemented for `[{integer}]`
- = note: required by `std::fmt::ArgumentV1::new`
- = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
- 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